summaryrefslogtreecommitdiff
path: root/daemon/ldap.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-06-27 22:43:39 +0000
committerStef Walter <stef@memberwebs.com>2008-06-27 22:43:39 +0000
commita6b7ff3f1082dc1fd19d0b21af9f2bc1cf5cde37 (patch)
treee3ede803e2a0dbb59a586767adb29e015a7f1f98 /daemon/ldap.c
parentd14cd8e7ea3baa0a779ee6bddc5feacbc66a8e7f (diff)
Retrieve proper attributes
Diffstat (limited to 'daemon/ldap.c')
-rw-r--r--daemon/ldap.c4
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;