summaryrefslogtreecommitdiffstats
path: root/src
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:37 -0400
commit34ae23e4b35f182716c716c408c3c7ad9e683fad (patch)
tree64a306901ede60ba2db667a117984a9dd558468c /src
parentf497588dbcf2e5a43fce2efafae75c038e1908af (diff)
downloadsssd-34ae23e4b35f182716c716c408c3c7ad9e683fad.tar.gz
sssd-34ae23e4b35f182716c716c408c3c7ad9e683fad.tar.xz
sssd-34ae23e4b35f182716c716c408c3c7ad9e683fad.zip
Use sysdb_attrs_primary_name() in sdap_initgr_nested_store_group
Diffstat (limited to 'src')
-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;
}