diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-06 17:17:25 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:49:20 +0100 |
commit | 58fd3aa25c5292bc67432647ab7e5059439fcc6d (patch) | |
tree | 54d9c27c24d910d412875fd6cdc2660f9dae743f /src/responder/pam | |
parent | 73120327cc136229d56d08f7f8c5e8df4129c1e3 (diff) | |
download | sssd-58fd3aa25c5292bc67432647ab7e5059439fcc6d.tar.gz sssd-58fd3aa25c5292bc67432647ab7e5059439fcc6d.tar.bz2 sssd-58fd3aa25c5292bc67432647ab7e5059439fcc6d.zip |
Pass domain to sysdb_get<pw/gr>nam() functions
Also allows us to remove sysdb_subdom_get<pw/gr>nam() wrappers and restore
fqnames proper value in subdomains, by testing for a parent domain being
present or not.
Diffstat (limited to 'src/responder/pam')
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 813894d3..fa8eabf6 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -1239,9 +1239,7 @@ static int pam_check_user_search(struct pam_auth_req *preq) return EFAULT; } - /* if this is a subdomain we need to search for the fully qualified - * name in the database */ - ret = sysdb_subdom_getpwnam(preq, sysdb, name, &preq->res); + ret = sysdb_getpwnam(preq, sysdb, dom, name, &preq->res); if (ret != EOK) { DEBUG(1, ("Failed to make request to our cache!\n")); return EIO; |