summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-05-16 17:03:41 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-16 16:06:58 -0400
commitd217f6b1176f653619439820cd9c4d3cb7f95c29 (patch)
treeda99a335ece7d02d5fa3e591dda45c81d3ee5e0d
parentecd6aa105c55994db06993bab3c967247656bacb (diff)
downloadsssd-d217f6b1176f653619439820cd9c4d3cb7f95c29.tar.gz
sssd-d217f6b1176f653619439820cd9c4d3cb7f95c29.tar.xz
sssd-d217f6b1176f653619439820cd9c4d3cb7f95c29.zip
Use the sysdb attribute name, not LDAP attribute name
-rw-r--r--src/providers/ldap/sdap_async_autofs.c2
-rw-r--r--src/providers/ldap/sdap_async_groups.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_autofs.c b/src/providers/ldap/sdap_async_autofs.c
index 3140596ef..d8a2d0eec 100644
--- a/src/providers/ldap/sdap_async_autofs.c
+++ b/src/providers/ldap/sdap_async_autofs.c
@@ -770,7 +770,7 @@ sdap_autofs_setautomntent_save(struct tevent_req *req)
ret = sysdb_attrs_to_list(
tmp_ctx, state->entries,
state->entries_count,
- state->opts->autofs_entry_map[SDAP_AT_AUTOFS_ENTRY_KEY].name,
+ state->opts->autofs_entry_map[SDAP_AT_AUTOFS_ENTRY_KEY].sys_name,
&ldap_entrylist);
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE,
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index 361525037..b48fe72ec 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -3044,7 +3044,7 @@ sdap_nested_group_process_deref_result(struct tevent_req *req)
} else if (dctx->deref_result[dctx->result_index]->map == \
state->opts->group_map) {
ret = sysdb_attrs_get_string(dctx->deref_result[dctx->result_index]->attrs,
- state->opts->group_map[SDAP_AT_GROUP_NAME].name,
+ state->opts->group_map[SDAP_AT_GROUP_NAME].sys_name,
&tmp_name);
if (ret == ENOENT) {
DEBUG(7, ("Dereferenced a group without name, skipping ...\n"));