summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2014-07-15 12:10:34 -0400
committerJakub Hrozek <jhrozek@redhat.com>2014-07-29 14:52:06 +0200
commitff22e829fd73fc53027d1e6ca005a9ac334086dd (patch)
tree515972d527cf8fafecb3ec41b5324ee8ee5a34bd /src/providers/ipa
parent5328aaeea84268b6d4e26cd33a2b3e8ea89bc349 (diff)
downloadsssd-ff22e829fd73fc53027d1e6ca005a9ac334086dd.tar.gz
sssd-ff22e829fd73fc53027d1e6ca005a9ac334086dd.tar.xz
sssd-ff22e829fd73fc53027d1e6ca005a9ac334086dd.zip
case_sensitivity = preserving
If case_sensitivity is set to 'preserving', getXXnam returns name attribute in the same format as stored in LDAP. Fixes: https://fedorahosted.org/sssd/ticket/2367 Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_selinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c
index 6cb014e43..5b65a7b04 100644
--- a/src/providers/ipa/ipa_selinux.c
+++ b/src/providers/ipa/ipa_selinux.c
@@ -757,7 +757,7 @@ static errno_t write_selinux_login_file(const char *orig_name,
/* pam_selinux needs the username in the same format getpwnam() would
* return it
*/
- username = sss_get_cased_name(tmp_ctx, orig_name, dom->case_sensitive);
+ username = sss_get_cased_name(tmp_ctx, orig_name, dom->case_preserve);
if (username == NULL) {
ret = ENOMEM;
goto done;