summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async_groups.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-04-23 08:58:54 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-05-03 14:09:14 -0400
commit3f2fa4c9290afdb393c760419a0ff686045a1ab3 (patch)
treea392008cb3a569dc0e4531c743d5296dbf1412c4 /src/providers/ldap/sdap_async_groups.c
parent58d02e0d3d6d48c97fccdb2ad7212e065671ad6d (diff)
downloadsssd-3f2fa4c9290afdb393c760419a0ff686045a1ab3.tar.gz
sssd-3f2fa4c9290afdb393c760419a0ff686045a1ab3.tar.xz
sssd-3f2fa4c9290afdb393c760419a0ff686045a1ab3.zip
LDAP: Do not remove uidNumber and gidNumber attributes when saving id-mapped entries
Diffstat (limited to 'src/providers/ldap/sdap_async_groups.c')
-rw-r--r--src/providers/ldap/sdap_async_groups.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index 67720025a..eb3cb9571 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -286,6 +286,11 @@ static int sdap_save_group(TALLOC_CTX *memctx,
}
}
+ /* Store the GID in the ldap_attrs so it doesn't get
+ * treated as a missing attribute from LDAP and removed.
+ */
+ ret = sysdb_attrs_add_uint32(attrs, SYSDB_GIDNUM, gid);
+ if (ret != EOK) goto fail;
} else {
ret = sysdb_attrs_get_bool(attrs, SYSDB_POSIX, &posix_group);
if (ret == ENOENT) {