diff options
author | Stef Walter <stef@memberwebs.com> | 2008-06-27 22:43:39 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-06-27 22:43:39 +0000 |
commit | a6b7ff3f1082dc1fd19d0b21af9f2bc1cf5cde37 (patch) | |
tree | e3ede803e2a0dbb59a586767adb29e015a7f1f98 /daemon | |
parent | d14cd8e7ea3baa0a779ee6bddc5feacbc66a8e7f (diff) |
Retrieve proper attributes
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; |