From c95e6e34c26fc95f622b4d0535bccede3c655146 Mon Sep 17 00:00:00 2001 From: "Andrew G. Morgan" Date: Sat, 13 Jul 2002 05:10:54 +0000 Subject: Relevant BUGIDs: 436435 Purpose of commit: new feature Commit summary: --------------- add account management to a bunch of modules. Submitted by Harald Welte. --- modules/pam_listfile/pam_listfile.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'modules/pam_listfile/pam_listfile.c') diff --git a/modules/pam_listfile/pam_listfile.c b/modules/pam_listfile/pam_listfile.c index b560b4b6..527d036f 100644 --- a/modules/pam_listfile/pam_listfile.c +++ b/modules/pam_listfile/pam_listfile.c @@ -35,6 +35,7 @@ */ #define PAM_SM_AUTH +#define PAM_SM_ACCOUNT #include #include @@ -134,8 +135,6 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **ar struct group *grpinfo; char *itemlist[256]; /* Maximum of 256 items */ - D(("called.")); - apply_type=APPLY_TYPE_NULL; memset(apply_val,0,sizeof(apply_val)); @@ -419,6 +418,13 @@ int pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv) return PAM_SUCCESS; } +PAM_EXTERN +int pam_sm_acct_mgmt(pam_handle_t *pamh, int flags, int argc, + const char **argv) +{ + return pam_sm_authenticate(pamh, 0, argc, argv); +} + #ifdef PAM_STATIC /* static module data */ @@ -427,13 +433,13 @@ struct pam_module _pam_listfile_modstruct = { "pam_listfile", pam_sm_authenticate, pam_sm_setcred, - NULL, + pam_sm_acct_mgmt, NULL, NULL, NULL, }; -#endif +#endif /* PAM_STATIC */ /* end of module definition */ -- cgit v1.2.3