diff options
author | Sumit Bose <sbose@redhat.com> | 2009-02-27 20:32:31 +0100 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-03-02 09:02:22 -0500 |
commit | e65c65fc710fa030bfb8319efc43fcdc9ce5a26f (patch) | |
tree | 5e4a8f1e0e7e14ba0dcaa25023c851a7d5aa3cf5 /sss_client | |
parent | a997dc37a7f69387195299caafc98afa80d74960 (diff) | |
download | sssd-e65c65fc710fa030bfb8319efc43fcdc9ce5a26f.tar.gz sssd-e65c65fc710fa030bfb8319efc43fcdc9ce5a26f.tar.bz2 sssd-e65c65fc710fa030bfb8319efc43fcdc9ce5a26f.zip |
first version of LOCAL pam backend
Diffstat (limited to 'sss_client')
-rw-r--r-- | sss_client/pam_sss.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sss_client/pam_sss.c b/sss_client/pam_sss.c index 25a1d2ca..bfb0ad17 100644 --- a/sss_client/pam_sss.c +++ b/sss_client/pam_sss.c @@ -102,6 +102,12 @@ static int pam_sss(int task, pam_handle_t *pamh, int flags, int argc, D(("Hello pam_sssd: %d", task)); +/* TODO: add useful prelim check */ + if (task == SSS_PAM_CHAUTHTOK && (flags & PAM_PRELIM_CHECK)) { + D(("ignoring PAM_PRELIM_CHECK")); + return PAM_SUCCESS; + } + ret = get_pam_items(pamh, &pi); if (ret != PAM_SUCCESS) { D(("get items returned error: %s", pam_strerror(pamh,ret))); |