]> granicus.if.org Git - linux-pam/blob - libpam/pam_account.c
Relevant BUGIDs: [task] 43507
[linux-pam] / libpam / pam_account.c
1 /* pam_account.c - PAM Account Management */
2
3 #include <stdio.h>
4
5 #include "pam_private.h"
6
7 int pam_acct_mgmt(pam_handle_t *pamh, int flags)
8 {
9     int retval;
10
11     D(("called"));
12
13     IF_NO_PAMH("pam_acct_mgmt", pamh, PAM_SYSTEM_ERR);
14
15     if (__PAM_FROM_MODULE(pamh)) {
16         D(("called from module!?"));
17         return PAM_SYSTEM_ERR;
18     }
19
20     retval = _pam_dispatch(pamh, flags, PAM_ACCOUNT);
21
22     return retval;
23 }