[dovecot-cvs] dovecot/src/auth auth-request.c,1.68,1.69
tss at dovecot.org
tss at dovecot.org
Sun Oct 15 21:02:05 UTC 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv28463
Modified Files:
auth-request.c
Log Message:
Don't even try to verify password with deny=yes passdbs.
Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- auth-request.c 15 Oct 2006 16:43:15 -0000 1.68
+++ auth-request.c 15 Oct 2006 20:02:02 -0000 1.69
@@ -867,6 +867,11 @@
return 1;
}
+ if (request->passdb->deny) {
+ /* this is a deny database, we don't care about the password */
+ return 0;
+ }
+
ret = password_verify(plain_password, crypted_password, scheme,
request->original_username);
if (ret < 0) {
More information about the dovecot-cvs
mailing list