summaryrefslogtreecommitdiff
path: root/src/responder/pam
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-12-21 18:00:25 +0100
committerStephen Gallagher <sgallagh@redhat.com>2011-12-21 14:47:41 -0500
commitc7d387aaaa3d3470dec55a5ca0612873e6354ba8 (patch)
treeb78851a84b37efc43b994fa5c45a03fa654ddbed /src/responder/pam
parent6f52db9c8b1081565ffa0543f8c8b470b8375932 (diff)
downloadsssd-c7d387aaaa3d3470dec55a5ca0612873e6354ba8.tar.gz
sssd-c7d387aaaa3d3470dec55a5ca0612873e6354ba8.tar.bz2
sssd-c7d387aaaa3d3470dec55a5ca0612873e6354ba8.zip
sss_get_cased_name utility function
Diffstat (limited to 'src/responder/pam')
-rw-r--r--src/responder/pam/pamsrv_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
index ced9df06..3b2d509e 100644
--- a/src/responder/pam/pamsrv_cmd.c
+++ b/src/responder/pam/pamsrv_cmd.c
@@ -859,8 +859,8 @@ static int pam_check_user_search(struct pam_auth_req *preq)
preq->domain = dom;
talloc_free(name);
- name = dom->case_sensitive ? talloc_strdup(preq, preq->pd->user) :
- sss_tc_utf8_str_tolower(preq, preq->pd->user);
+ name = sss_get_cased_name(preq, preq->pd->user,
+ dom->case_sensitive);
if (!name) {
return ENOMEM;
}