changeset 4402:8846e6be0e02 HEAD

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.
author Timo Sirainen <tss@iki.fi>
date Sat, 17 Jun 2006 18:23:00 +0300
parents 10cdcfe98cfc
children e1c32d917934
files src/auth/auth-request.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/auth-request.c	Sat Jun 17 18:14:15 2006 +0300
+++ b/src/auth/auth-request.c	Sat Jun 17 18:23:00 2006 +0300
@@ -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