diff options
author | Sumit Bose <sbose@redhat.com> | 2009-12-21 14:51:32 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-01-05 10:01:46 -0500 |
commit | 91e670f9928fe489fbdb2403b5bbf59bcc4564a2 (patch) | |
tree | 5b61c9b9a58e533bb5dbe42a77b5ab3449070506 /server/providers/ldap | |
parent | 60d37b178ec248764abdc58ff486fc661d0ff77a (diff) | |
download | sssd-91e670f9928fe489fbdb2403b5bbf59bcc4564a2.tar.gz sssd-91e670f9928fe489fbdb2403b5bbf59bcc4564a2.tar.bz2 sssd-91e670f9928fe489fbdb2403b5bbf59bcc4564a2.zip |
Return an error for an unknown PAM request
Diffstat (limited to 'server/providers/ldap')
-rw-r--r-- | server/providers/ldap/ldap_auth.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/server/providers/ldap/ldap_auth.c b/server/providers/ldap/ldap_auth.c index 28b3240b..fbb4e53b 100644 --- a/server/providers/ldap/ldap_auth.c +++ b/server/providers/ldap/ldap_auth.c @@ -880,13 +880,19 @@ void sdap_pam_auth_handler(struct be_req *breq) tevent_req_set_callback(subreq, sdap_pam_auth_done, state); return; -/* FIXME: handle other cases */ case SSS_PAM_CHAUTHTOK: break; - default: + case SSS_PAM_ACCT_MGMT: + case SSS_PAM_SETCRED: + case SSS_PAM_OPEN_SESSION: + case SSS_PAM_CLOSE_SESSION: pd->pam_status = PAM_SUCCESS; dp_err = DP_ERR_OK; + break; + default: + pd->pam_status = PAM_MODULE_UNKNOWN; + dp_err = DP_ERR_OK; } done: |