Mercurial > dovecot > core-2.2
diff 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 |
line wrap: on
line diff
--- a/src/auth/auth-request.c Sun Apr 03 00:20:38 2005 +0300 +++ b/src/auth/auth-request.c Sun Apr 03 01:00:49 2005 +0300 @@ -420,6 +420,12 @@ return; } + if (strcmp(name, "user") == 0) { + /* update username to be exactly as it's in database */ + request->user = p_strdup(request->pool, value); + return; + } + if (strcmp(name, "nodelay") == 0) { /* don't delay replying to client of the failure */ request->no_failure_delay = TRUE;