]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Do username checks/translations even when ssl_username_from_cert=yes
authorTimo Sirainen <tss@iki.fi>
Fri, 19 Mar 2010 15:51:28 +0000 (17:51 +0200)
committerTimo Sirainen <tss@iki.fi>
Fri, 19 Mar 2010 15:51:28 +0000 (17:51 +0200)
--HG--
branch : HEAD

src/auth/auth-request.c

index 7e7a60858f67bdd752eeabe1727fadc3cfee773c..9208e7a922ffbf55f5c3d0d02b234501931d415e 100644 (file)
@@ -868,8 +868,9 @@ bool auth_request_set_username(struct auth_request *request,
        }
        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') {