From a6b7ff3f1082dc1fd19d0b21af9f2bc1cf5cde37 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 27 Jun 2008 22:43:39 +0000 Subject: Retrieve proper attributes --- daemon/ldap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon/ldap.c') 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; -- cgit v1.2.3