dovecot-1.0: Fixed pass=yes with blocking passdbs. Also master_u...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Mar 2 07:39:39 EET 2008
details: http://hg.dovecot.org/dovecot-1.0/rev/5ba746bc9937
changeset: 5523:5ba746bc9937
user: Timo Sirainen <tss at iki.fi>
date: Sun Mar 02 07:39:35 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 eb249c6e4fef -r 5ba746bc9937 src/auth/auth-request.c
--- a/src/auth/auth-request.c Fri Feb 29 11:18:02 2008 +0200
+++ b/src/auth/auth-request.c Sun Mar 02 07:39:35 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);
}
@@ -137,6 +137,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,
@@ -163,7 +165,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