summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-05-03 15:15:09 (GMT)
committerStephen Gallagher <sgallagh@redhat.com>2012-05-03 17:46:59 (GMT)
commitdbdf6911688315515a36bb91786108a95d033128 (patch)
tree6614734ee4bb021369f5494bdbb21b762de1fcf4
parentb42b5d5aaf4da165582e73ad985fdff6e34e61e4 (diff)
downloadsssd-dbdf6911688315515a36bb91786108a95d033128.zip
sssd-dbdf6911688315515a36bb91786108a95d033128.tar.gz
sssd-dbdf6911688315515a36bb91786108a95d033128.tar.xz
Read sysdb attribute name, not LDAP attribute map name
https://fedorahosted.org/sssd/ticket/1320
-rw-r--r--src/providers/ldap/sdap_async.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
index b8283ef..fb5c890 100644
--- a/src/providers/ldap/sdap_async.c
+++ b/src/providers/ldap/sdap_async.c
@@ -2091,7 +2091,7 @@ errno_t sdap_check_aliases(struct sysdb_ctx *sysdb,
if (!tmp_ctx) return ENOMEM;
ret = sysdb_attrs_primary_name(sysdb, user_attrs,
- opts->user_map[SDAP_AT_USER_NAME].name,
+ opts->user_map[SDAP_AT_USER_NAME].sys_name,
&name);
if (ret != EOK) {
DEBUG(SSSDBG_TRACE_INTERNAL, ("Could not get the primary name\n"));
@@ -2099,7 +2099,7 @@ errno_t sdap_check_aliases(struct sysdb_ctx *sysdb,
}
ret = sysdb_attrs_get_uint32_t(user_attrs,
- opts->user_map[SDAP_AT_USER_UID].name,
+ opts->user_map[SDAP_AT_USER_UID].sys_name,
&uid);
if (ret != EOK) {
DEBUG(SSSDBG_TRACE_INTERNAL, ("Could not get UID\n"));