summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-03-22 15:08:50 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-03-23 04:58:50 -0400
commit72373c2f8dfce36ba7510356e786e08cf45c6677 (patch)
treee7ac9af0b64212f54269cd9a410597f490c26e8b
parent4ee61334bdcc76be366563e4a54d22c27502f7e9 (diff)
downloadsssd-72373c2f8dfce36ba7510356e786e08cf45c6677.tar.gz
sssd-72373c2f8dfce36ba7510356e786e08cf45c6677.tar.xz
sssd-72373c2f8dfce36ba7510356e786e08cf45c6677.zip
Use sysdb_attrs_primary_name() in sdap_initgr_nested_store_group
-rw-r--r--src/providers/ldap/sdap_async_accounts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c
index a6b519927..28d667c9a 100644
--- a/src/providers/ldap/sdap_async_accounts.c
+++ b/src/providers/ldap/sdap_async_accounts.c
@@ -2623,7 +2623,9 @@ static int sdap_initgr_nested_store_group(struct sysdb_ctx *sysdb,
goto done;
}
- ret = sysdb_attrs_get_string(group, SYSDB_NAME, &group_name);
+ ret = sysdb_attrs_primary_name(sysdb, group,
+ opts->group_map[SDAP_AT_GROUP_NAME].name,
+ &group_name);
if (ret != EOK) {
goto done;
}