summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabiano Fidêncio <fidencio@redhat.com>2016-08-23 23:46:59 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-08-24 12:42:36 +0200
commit5691b2d668541585d2a8ae3ddb834f29d828036e (patch)
treee5d86a2bf6ae5488a84eb2cc2f874b44a3054e24 /src
parentd940593e647731c0caec1fd04cf16a1b23578f32 (diff)
downloadsssd-5691b2d668541585d2a8ae3ddb834f29d828036e.tar.gz
sssd-5691b2d668541585d2a8ae3ddb834f29d828036e.tar.xz
sssd-5691b2d668541585d2a8ae3ddb834f29d828036e.zip
PROXY: Use the fqname when converting to lowercase
When saving the user there is a comparison between the "cased alias" and the "lowercase password name". However, the first doesn't use fully qualified name while the second does, resulting in a not expected override of the "nameAlias" attribute of a stored user when trying to authenticate more than once using an alias. Resolves: https://fedorahosted.org/sssd/ticket/3134 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/providers/proxy/proxy_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c
index 26f4d7499..b0c82807b 100644
--- a/src/providers/proxy/proxy_id.c
+++ b/src/providers/proxy/proxy_id.c
@@ -256,7 +256,7 @@ static int save_user(struct sss_domain_info *domain,
}
if (lowercase) {
- lc_pw_name = sss_tc_utf8_str_tolower(attrs, pwd->pw_name);
+ lc_pw_name = sss_tc_utf8_str_tolower(attrs, real_name);
if (lc_pw_name == NULL) {
DEBUG(SSSDBG_OP_FAILURE, "Cannot convert name to lowercase.\n");
ret = ENOMEM;