diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-08-11 13:11:49 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-08-11 13:22:24 -0400 |
commit | ef9b6d8e0a62d3df821b8de446f150c932c087ef (patch) | |
tree | bea70d22d61b754461c21c3d1fccf967f0734c85 /src | |
parent | 2a644650a1063e8710939299c2a8dbcd7f7460ec (diff) | |
download | sssd-ef9b6d8e0a62d3df821b8de446f150c932c087ef.tar.gz sssd-ef9b6d8e0a62d3df821b8de446f150c932c087ef.tar.xz sssd-ef9b6d8e0a62d3df821b8de446f150c932c087ef.zip |
Use sysdb attribute name for GID, not LDAP attribute
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap_async_accounts.c | 6 |
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 09501329b..bea965b47 100644 --- a/src/providers/ldap/sdap_async_accounts.c +++ b/src/providers/ldap/sdap_async_accounts.c @@ -3432,7 +3432,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; @@ -3454,7 +3454,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")); @@ -3462,7 +3462,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")); |