diff options
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/ldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/ldap.c b/daemon/ldap.c index f4324be..d170011 100644 --- a/daemon/ldap.c +++ b/daemon/ldap.c @@ -593,9 +593,9 @@ static int retrieve_user_entry(const ha_request_t* rq, ldap_context_t* ctx, LDAP i = 0; if (ctx->group_attr) attrs[i++] = ctx->group_attr; - if (ctx->dobind && ctx->pw_attr) + if (!ctx->dobind && ctx->pw_attr) attrs[i++] = ctx->pw_attr; - if (ctx->dobind && ctx->ha1_attr) + if (!ctx->dobind && ctx->ha1_attr) attrs[i++] = ctx->ha1_attr; attrs[i] = NULL; |