summaryrefslogtreecommitdiff
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-05-03 17:15:09 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-03 13:46:59 -0400
commitdbdf6911688315515a36bb91786108a95d033128 (patch)
tree6614734ee4bb021369f5494bdbb21b762de1fcf4 /src/providers/ldap
parentb42b5d5aaf4da165582e73ad985fdff6e34e61e4 (diff)
downloadsssd-dbdf6911688315515a36bb91786108a95d033128.tar.gz
sssd-dbdf6911688315515a36bb91786108a95d033128.tar.bz2
sssd-dbdf6911688315515a36bb91786108a95d033128.zip
Read sysdb attribute name, not LDAP attribute map name
https://fedorahosted.org/sssd/ticket/1320
Diffstat (limited to 'src/providers/ldap')
-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 b8283ef9..fb5c8902 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"));