summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-08-11 13:11:49 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-08-29 08:14:57 -0400
commit16d81cc8a7f3c5fbb3b64f3d1fa47aff194882eb (patch)
tree0b3ac05cbcbc6c93c2bff40710a99d530e286007
parentb65977f45db35390a7183929bea53692f3acb072 (diff)
downloadsssd-16d81cc8a7f3c5fbb3b64f3d1fa47aff194882eb.tar.gz
sssd-16d81cc8a7f3c5fbb3b64f3d1fa47aff194882eb.tar.xz
sssd-16d81cc8a7f3c5fbb3b64f3d1fa47aff194882eb.zip
Use sysdb attribute name for GID, not LDAP attribute
-rw-r--r--src/providers/ldap/sdap_async_accounts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c
index 79904e5df..397b1c7da 100644
--- a/src/providers/ldap/sdap_async_accounts.c
+++ b/src/providers/ldap/sdap_async_accounts.c
@@ -3269,7 +3269,7 @@ static struct tevent_req *sdap_nested_group_process_send(
key.type = HASH_KEY_STRING;
ret = sysdb_attrs_primary_name(sysdb, group,
- opts->group_map[SDAP_AT_GROUP_NAME].name,
+ opts->group_map[SDAP_AT_GROUP_NAME].sys_name,
&groupname);
if (ret != EOK) {
goto immediate;
@@ -3291,7 +3291,7 @@ static struct tevent_req *sdap_nested_group_process_send(
}
ret = sysdb_attrs_get_uint32_t(group,
- opts->group_map[SDAP_AT_GROUP_GID].name,
+ opts->group_map[SDAP_AT_GROUP_GID].sys_name,
&gid);
if (ret == ENOENT || (ret == EOK && gid == 0)) {
DEBUG(9, ("The group's gid was %s\n", ret == ENOENT ? "missing" : "zero"));
@@ -3299,7 +3299,7 @@ static struct tevent_req *sdap_nested_group_process_send(
if (ret == ENOENT) {
ret = sysdb_attrs_add_uint32(group,
- opts->group_map[SDAP_AT_GROUP_GID].name,
+ opts->group_map[SDAP_AT_GROUP_GID].sys_name,
0);
if (ret != EOK) {
DEBUG(1, ("Failed to add a GID to non-posix group!\n"));