summaryrefslogtreecommitdiff
path: root/sss_client
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-02-27 20:32:31 +0100
committerSimo Sorce <ssorce@redhat.com>2009-03-02 09:02:22 -0500
commite65c65fc710fa030bfb8319efc43fcdc9ce5a26f (patch)
tree5e4a8f1e0e7e14ba0dcaa25023c851a7d5aa3cf5 /sss_client
parenta997dc37a7f69387195299caafc98afa80d74960 (diff)
downloadsssd-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.c6
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)));