changeset 7318:be991f857c70 HEAD

Fixed pass=yes with blocking passdbs. Also master_user wasn't exported correctly to blocking passdbs.
author Timo Sirainen <tss@iki.fi>
date Sun, 02 Mar 2008 07:39:32 +0200
parents 92cd0509b2b9
children d76c54e092f5
files src/auth/auth-request.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/auth-request.c	Sun Mar 02 06:40:31 2008 +0200
+++ b/src/auth/auth-request.c	Sun Mar 02 07:39:32 2008 +0200
@@ -123,7 +123,7 @@
 	str_append(str, request->service);
 
         if (request->master_user != NULL) {
-                str_append(str, "master_user=");
+                str_append(str, "\tmaster_user=");
                 str_append(str, request->master_user);
         }
 
@@ -145,6 +145,8 @@
 	}
 	if (request->secured)
 		str_append(str, "\tsecured=1");
+	if (request->skip_password_check)
+		str_append(str, "\tskip_password_check=1");
 }
 
 bool auth_request_import(struct auth_request *request,
@@ -175,7 +177,10 @@
 		request->secured = TRUE;
 	else if (strcmp(key, "nologin") == 0)
 		request->no_login = TRUE;
-	else
+	else if (strcmp(key, "skip_password_check") == 0) {
+		i_assert(request->master_user !=  NULL);
+		request->skip_password_check = TRUE;
+	} else
 		return FALSE;
 
 	return TRUE;