summaryrefslogtreecommitdiff
path: root/server/providers/ldap
diff options
context:
space:
mode:
authorRalf Haferkamp <rhafer@suse.de>2009-09-03 14:20:21 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-09-03 11:17:22 -0400
commit68b7346002778d917c01a9bb3433a86648872d82 (patch)
tree3ebd7a613fb373b5a7958cde407b5375f92fd472 /server/providers/ldap
parent882c8742a3daac9ad389d152219a293ed833c7d8 (diff)
downloadsssd-68b7346002778d917c01a9bb3433a86648872d82.tar.gz
sssd-68b7346002778d917c01a9bb3433a86648872d82.tar.bz2
sssd-68b7346002778d917c01a9bb3433a86648872d82.zip
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.
Diffstat (limited to 'server/providers/ldap')
-rw-r--r--server/providers/ldap/sdap_async.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/providers/ldap/sdap_async.c b/server/providers/ldap/sdap_async.c
index 852c6d23..de8276d7 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;