[dovecot-cvs] dovecot/src/auth auth-request.c,1.60,1.61

cras at dovecot.org cras at dovecot.org
Sat Jun 17 18:23:03 EEST 2006


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

Modified Files:
	auth-request.c 
Log Message:
If multiple passdbs were configured and we tried to authenticate as user
which was in more than one of them with different passwords, we gave
"multiple passwords not supported" error.                   



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- auth-request.c	16 Jun 2006 10:01:25 -0000	1.60
+++ auth-request.c	17 Jun 2006 15:23:00 -0000	1.61
@@ -314,6 +314,7 @@
 				/* this wasn't the final passdb lookup,
 				   continue to next passdb */
 				request->passdb = request->passdb->next;
+				request->passdb_password = NULL;
 				return FALSE;
 			}
 		}
@@ -326,6 +327,7 @@
 		   *result != PASSDB_RESULT_USER_DISABLED) {
 		/* try next passdb. */
                 request->passdb = request->passdb->next;
+		request->passdb_password = NULL;
 
                 if (*result == PASSDB_RESULT_INTERNAL_FAILURE) {
 			/* remember that we have had an internal failure. at



More information about the dovecot-cvs mailing list