summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-01-08 08:11:46 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-01-08 18:44:37 +0100
commit850f7b6ce4a0f3faa168d6ded2467585065436e6 (patch)
tree560f4a22450f0a92b553d406b89a6e2bd36d6068 /src
parent01c9724f3bd540eda8b6d2879ca8a1cdd4af4330 (diff)
downloadsssd-850f7b6ce4a0f3faa168d6ded2467585065436e6.tar.gz
sssd-850f7b6ce4a0f3faa168d6ded2467585065436e6.tar.xz
sssd-850f7b6ce4a0f3faa168d6ded2467585065436e6.zip
LDAP: Fix typo and use the right attribute map
https://fedorahosted.org/sssd/ticket/2191 There was a copy-n-paste bug in the code that resulted in using a wrong attribute map. This could lead to the primary name not being selected correctly.
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c
index 078326ad3..ddcf199b6 100644
--- a/src/providers/ldap/sdap.c
+++ b/src/providers/ldap/sdap.c
@@ -1246,7 +1246,7 @@ errno_t sdap_get_user_primary_name(TALLOC_CTX *memctx,
const char **_user_name)
{
return sdap_get_primary_name(memctx,
- opts->group_map[SDAP_AT_USER_NAME].name,
+ opts->user_map[SDAP_AT_USER_NAME].name,
attrs, dom, _user_name);
}