From f8b38282463aaee3db4a688d00d60407fc9acdb8 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 11 Oct 2006 22:13:17 +0000 Subject: [PATCH] PAM fixed (pam_sm_setcred -> PAM_SUCCESS) --- src/pam.c | 38 +++++--------------------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/src/pam.c b/src/pam.c index e1a00b7..c0b7e9c 100644 --- a/src/pam.c +++ b/src/pam.c @@ -83,35 +83,7 @@ PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc, const char **argv) { - return (PAM_IGNORE); -} - -PAM_EXTERN -int pam_sm_acct_mgmt(pam_handle_t *pamh, int flags, int argc, - const char **argv) -{ - return (PAM_IGNORE); -} - -PAM_EXTERN -int pam_sm_open_session(pam_handle_t *pamh, int flags, int argc, - const char **argv) -{ - return (PAM_IGNORE); -} - -PAM_EXTERN -int pam_sm_close_session(pam_handle_t *pamh, int flags, int argc, - const char **argv) -{ - return (PAM_IGNORE); -} - -PAM_EXTERN -int pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, - const char **argv) -{ - return (PAM_IGNORE); + return (PAM_SUCCESS); } #ifdef PAM_STATIC @@ -120,10 +92,10 @@ struct pam_module _pam_usb_modstruct = { "pam_usb", pam_sm_authenticate, pam_sm_setcred, - pam_sm_acct_mgmt, - pam_sm_open_session, - pam_sm_close_session, - pam_sm_chauthtok + NULL, + NULL, + NULL, + NULL }; #endif