[dovecot-cvs] dovecot/src/auth auth-request.c,1.58.2.6,1.58.2.7

cras at dovecot.org cras at dovecot.org
Thu Aug 3 19:21:58 EEST 2006


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

Modified Files:
      Tag: branch_1_0
	auth-request.c 
Log Message:
If master login failed because of non-password failure (eg. allow_nets)
don't continue the authentication to non-master passdbs.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.58.2.6
retrieving revision 1.58.2.7
diff -u -d -r1.58.2.6 -r1.58.2.7
--- auth-request.c	3 Aug 2006 16:20:58 -0000	1.58.2.6
+++ auth-request.c	3 Aug 2006 16:21:56 -0000	1.58.2.7
@@ -263,6 +263,9 @@
 
 static bool auth_request_master_lookup_finish(struct auth_request *request)
 {
+	if (request->passdb_failure)
+		return TRUE;
+
 	/* master login successful. update user and master_user variables. */
 	auth_request_log_info(request, "passdb", "Master user logging in as %s",
 			      request->requested_login_user);



More information about the dovecot-cvs mailing list