Mercurial > dovecot > core-2.2
comparison src/auth/auth-request.c @ 3257:92c16e82b806 HEAD
passdb can now change the username that was used to log in. This is mostly
useful to support case-insensitive username lookups.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 03 Apr 2005 01:00:49 +0300 |
parents | 2ff790d5d9e2 |
children | 36db3285f4a7 |
comparison
equal
deleted
inserted
replaced
3256:c18ab708f71c | 3257:92c16e82b806 |
---|---|
415 p_strdup(request->pool, value); | 415 p_strdup(request->pool, value); |
416 } else { | 416 } else { |
417 auth_request_log_error(request, "auth", | 417 auth_request_log_error(request, "auth", |
418 "Multiple password values not supported"); | 418 "Multiple password values not supported"); |
419 } | 419 } |
420 return; | |
421 } | |
422 | |
423 if (strcmp(name, "user") == 0) { | |
424 /* update username to be exactly as it's in database */ | |
425 request->user = p_strdup(request->pool, value); | |
420 return; | 426 return; |
421 } | 427 } |
422 | 428 |
423 if (strcmp(name, "nodelay") == 0) { | 429 if (strcmp(name, "nodelay") == 0) { |
424 /* don't delay replying to client of the failure */ | 430 /* don't delay replying to client of the failure */ |