Browse Source

PAM fixed (pam_sm_setcred -> PAM_SUCCESS)

Andrea Luzzardi 18 years ago
parent
commit
f8b3828246
1 changed files with 5 additions and 33 deletions
  1. +5
    -33
      src/pam.c

+ 5
- 33
src/pam.c View File

@ -83,35 +83,7 @@ PAM_EXTERN
int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc, int pam_sm_setcred(pam_handle_t *pamh,int flags,int argc,
const char **argv) 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 #ifdef PAM_STATIC
@ -120,10 +92,10 @@ struct pam_module _pam_usb_modstruct = {
"pam_usb", "pam_usb",
pam_sm_authenticate, pam_sm_authenticate,
pam_sm_setcred, pam_sm_setcred,
pam_sm_acct_mgmt,
pam_sm_open_session,
pam_sm_close_session,
pam_sm_chauthtok
NULL,
NULL,
NULL,
NULL
}; };
#endif #endif

Loading…
Cancel
Save