dovecot-2.0: auth: Do username checks/translations even when ssl...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Mar 19 17:51:31 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/bcd43231f723
changeset: 10954:bcd43231f723
user: Timo Sirainen <tss at iki.fi>
date: Fri Mar 19 17:51:28 2010 +0200
description:
auth: Do username checks/translations even when ssl_username_from_cert=yes
diffstat:
src/auth/auth-request.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r bdef690d41d5 -r bcd43231f723 src/auth/auth-request.c
--- a/src/auth/auth-request.c Fri Mar 19 17:24:22 2010 +0200
+++ b/src/auth/auth-request.c Fri Mar 19 17:51:28 2010 +0200
@@ -868,8 +868,9 @@
}
if (request->cert_username) {
/* cert_username overrides the username given by
- authentication mechanism. */
- return TRUE;
+ authentication mechanism. but still do checks and
+ translations to it. */
+ username = request->user;
}
if (*username == '\0') {
More information about the dovecot-cvs
mailing list