dovecot-2.2: auth: Fixed credentials lookups via auth-workers wh...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 7 08:29:50 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/8a3da4ef590f
changeset: 18537:8a3da4ef590f
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 07 11:27:55 2015 +0300
description:
auth: Fixed credentials lookups via auth-workers when no actual password was returned.
For example LDAP lookup with auth_bind=yes should still return any extra
fields.

diffstat:

 src/auth/auth-worker-client.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 5dc00179dd60 -r 8a3da4ef590f src/auth/auth-worker-client.c
--- a/src/auth/auth-worker-client.c	Thu May 07 11:21:33 2015 +0300
+++ b/src/auth/auth-worker-client.c	Thu May 07 11:27:55 2015 +0300
@@ -241,7 +241,9 @@
 	else {
 		str_append(str, "OK\t");
 		str_append_tabescaped(str, request->user);
-		str_printfa(str, "\t{%s.b64}", request->credentials_scheme);
+		str_append_c(str, '\t');
+		if (request->credentials_scheme[0] != '\0')
+			str_printfa(str, "{%s.b64}", request->credentials_scheme);
 		base64_encode(credentials, size, str);
 		reply_append_extra_fields(str, request);
 	}


More information about the dovecot-cvs mailing list