summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_id.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-01-19 15:39:02 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-01-21 09:24:56 -0500
commit3ad662a4d26c0d6ee4e382758ca7b3f0c2880d20 (patch)
treeb7b7f3421a1548ddc441f3affaa5f5a1bad81657 /src/providers/ldap/ldap_id.c
parentfd72f761edb0b11265ce3293b56a4a4fa0d1a317 (diff)
downloadsssd-3ad662a4d26c0d6ee4e382758ca7b3f0c2880d20.tar.gz
sssd-3ad662a4d26c0d6ee4e382758ca7b3f0c2880d20.tar.xz
sssd-3ad662a4d26c0d6ee4e382758ca7b3f0c2880d20.zip
Add the user's primary group to the initgroups lookup
The user may not be a direct member of their primary group, but we still want to make sure that group is cached on the system.
Diffstat (limited to 'src/providers/ldap/ldap_id.c')
-rw-r--r--src/providers/ldap/ldap_id.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c
index ed27620ce..09f0026b0 100644
--- a/src/providers/ldap/ldap_id.c
+++ b/src/providers/ldap/ldap_id.c
@@ -588,11 +588,12 @@ static void groups_by_user_connect_done(struct tevent_req *subreq)
return;
}
- subreq = sdap_get_initgr_send(state, state->ev,
- state->ctx->be->domain,
- state->ctx->be->sysdb,
- state->ctx->opts, sdap_id_op_handle(state->op),
- state->name, state->attrs);
+ subreq = sdap_get_initgr_send(state,
+ state->ev,
+ sdap_id_op_handle(state->op),
+ state->ctx,
+ state->name,
+ state->attrs);
if (!subreq) {
tevent_req_error(req, ENOMEM);
return;