dovecot: Fixed pass=yes with blocking passdbs. Also master_user ...

dovecot at dovecot.org dovecot at dovecot.org
Sun Mar 2 07:39:55 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/2b8568b54384
changeset: 7313:2b8568b54384
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Mar 02 07:39:52 2008 +0200
description:
Fixed pass=yes with blocking passdbs. Also master_user wasn't exported
correctly to blocking passdbs.

diffstat:

1 file changed, 7 insertions(+), 2 deletions(-)
src/auth/auth-request.c |    9 +++++++--

diffs (33 lines):

diff -r 8ef6b651e2f8 -r 2b8568b54384 src/auth/auth-request.c
--- a/src/auth/auth-request.c	Sun Mar 02 06:40:34 2008 +0200
+++ b/src/auth/auth-request.c	Sun Mar 02 07:39:52 2008 +0200
@@ -123,7 +123,7 @@ void auth_request_export(struct auth_req
 	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 @@ void auth_request_export(struct auth_req
 	}
 	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 @@ bool auth_request_import(struct auth_req
 		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;


More information about the dovecot-cvs mailing list