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

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


details:   http://hg.dovecot.org/dovecot-1.1/rev/e76f93b48187
changeset: 8074:e76f93b48187
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 3d32b23f7437 -r e76f93b48187 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
@@ -121,6 +121,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