summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-08-14 12:48:40 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-19 12:53:49 +0200
commit85089c1037f00c87a29f72647ece37a3b2b6481b (patch)
tree8865167f7c7c244e7f4af645d8a9e3db194d8f13
parent83b5a69a90dd74aaef01d48846a5504789a28317 (diff)
downloadsssd-85089c1037f00c87a29f72647ece37a3b2b6481b.tar.gz
sssd-85089c1037f00c87a29f72647ece37a3b2b6481b.tar.bz2
sssd-85089c1037f00c87a29f72647ece37a3b2b6481b.zip
sdap_get_initgr_done: use the right SID to get a GID
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 5242c1ad..02158a6f 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -2937,7 +2937,8 @@ static void sdap_get_initgr_done(struct tevent_req *subreq)
}
/* Convert the SID into a UNIX group ID */
- ret = sdap_idmap_sid_to_unix(opts->idmap_ctx, sid_str, &primary_gid);
+ ret = sdap_idmap_sid_to_unix(opts->idmap_ctx, group_sid_str,
+ &primary_gid);
if (ret != EOK) goto fail;
} else {
ret = sysdb_attrs_get_uint32_t(state->orig_user, SYSDB_GIDNUM,