From 68b7346002778d917c01a9bb3433a86648872d82 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 3 Sep 2009 14:20:21 +0200 Subject: Fix initgroups search filter when using rfc2307bis sdap_get_initgr_process() was using the wrong sdap_id_map struct when creating the searchfilter for the initgroups() call. --- server/providers/ldap/sdap_async.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/providers/ldap/sdap_async.c b/server/providers/ldap/sdap_async.c index 852c6d237..de8276d74 100644 --- a/server/providers/ldap/sdap_async.c +++ b/server/providers/ldap/sdap_async.c @@ -1831,9 +1831,9 @@ static void sdap_get_initgr_process(struct tevent_req *subreq) } state->filter = talloc_asprintf(state, "(&(%s=%s)(objectclass=%s))", - state->opts->user_map[SDAP_AT_GROUP_MEMBER].name, + state->opts->group_map[SDAP_AT_GROUP_MEMBER].name, user_dn, - state->opts->user_map[SDAP_OC_GROUP].name); + state->opts->group_map[SDAP_OC_GROUP].name); talloc_free(msg); break; -- cgit