dovecot-1.2: auth cache wasn't working correctly for all fields ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jan 8 18:34:37 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/2778cd717f22
changeset: 8598:2778cd717f22
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jan 08 11:34:22 2009 -0500
description:
auth cache wasn't working correctly for all fields (e.g. allow_nets) with blocking passdbs.
The extra cache-only fields weren't transferred to the main auth process
which was handling the cached entries.

diffstat:

1 file changed, 5 insertions(+)
src/auth/auth-worker-client.c |    5 +++++

diffs (15 lines):

diff -r 9f885dbd8157 -r 2778cd717f22 src/auth/auth-worker-client.c
--- a/src/auth/auth-worker-client.c	Wed Jan 07 17:03:34 2009 -0500
+++ b/src/auth/auth-worker-client.c	Thu Jan 08 11:34:22 2009 -0500
@@ -123,6 +123,11 @@ static void verify_plain_callback(enum p
 				auth_stream_reply_export(request->extra_fields);
 			auth_stream_reply_import(reply, fields);
 		}
+		if (request->extra_cache_fields != NULL) {
+			const char *fields =
+				auth_stream_reply_export(request->extra_cache_fields);
+			auth_stream_reply_import(reply, fields);
+		}
 	}
 	str = auth_stream_reply_get_str(reply);
 	str_append_c(str, '\n');


More information about the dovecot-cvs mailing list