]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Using templates in pass_attrs or user_attrs was somewhat broken, causing
authorTimo Sirainen <tss@iki.fi>
Tue, 1 Apr 2008 08:45:23 +0000 (11:45 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 1 Apr 2008 08:45:23 +0000 (11:45 +0300)
errors for other fields. Fixed by richs at whidbey.net

--HG--
branch : HEAD

src/auth/db-ldap.c

index 26e696704624ccb5ea121052fe69682148bccc05..f6a60a4d6b0e4afb698480f2f0b03847fb99463a 100644 (file)
@@ -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,