>From 8ad2c3e2b15a81f5f9b2f7018b67bf84f0a2ef1c Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 16 May 2012 17:03:41 +0200 Subject: [PATCH] Use the sysdb attribute name, not LDAP attribute name --- src/providers/ldap/sdap_async_autofs.c | 2 +- src/providers/ldap/sdap_async_groups.c | 2 +- 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 3140596efb07e8433f6e044dc2e2c8bba8735886..d8a2d0eec75c3e42cd3dc39930d20a0a51e2c541 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 361525037eb270462251fe03d0c5e1df63de73f4..b48fe72eca1ab1dfe2dcb7a97a856ecef86d6f33 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")); -- 1.7.10.1