[dovecot-cvs] dovecot/src/auth auth-request.c,1.58.2.11,1.58.2.12

tss at dovecot.org tss at dovecot.org
Sun Oct 15 21:02:03 UTC 2006


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv28467

Modified Files:
      Tag: branch_1_0
	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.58.2.11
retrieving revision 1.58.2.12
diff -u -d -r1.58.2.11 -r1.58.2.12
--- auth-request.c	15 Oct 2006 16:43:13 -0000	1.58.2.11
+++ auth-request.c	15 Oct 2006 20:02:01 -0000	1.58.2.12
@@ -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