From: Timo Sirainen Date: Tue, 1 Apr 2008 08:45:23 +0000 (+0300) Subject: Using templates in pass_attrs or user_attrs was somewhat broken, causing X-Git-Tag: 1.1.rc4~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37b5289a049b20bab43f414f647d37b17aa2c3b2;p=thirdparty%2Fdovecot%2Fcore.git Using templates in pass_attrs or user_attrs was somewhat broken, causing errors for other fields. Fixed by richs at whidbey.net --HG-- branch : HEAD --- diff --git a/src/auth/db-ldap.c b/src/auth/db-ldap.c index 26e6967046..f6a60a4d6b 100644 --- a/src/auth/db-ldap.c +++ b/src/auth/db-ldap.c @@ -1009,6 +1009,7 @@ static void db_ldap_result_change_attr(struct db_ldap_result_iterate_context *ctx) { ctx->name = hash_lookup(ctx->attr_map, ctx->attr); + ctx->template = NULL; if (ctx->debug != NULL) { str_printfa(ctx->debug, " %s(%s)=", ctx->attr,