1PAM_SM_ACCT_MGMT(3) Linux-PAM Manual PAM_SM_ACCT_MGMT(3)
2
3
4
6 pam_sm_acct_mgmt - PAM service function for account management
7
9 #include <security/pam_modules.h>
10
11 int pam_sm_acct_mgmt(pam_handle_t *pamh, int flags, int argc,
12 const char **argv);
13
15 The pam_sm_acct_mgmt function is the service module's implementation of
16 the pam_acct_mgmt(3) interface.
17
18 This function performs the task of establishing whether the user is
19 permitted to gain access at this time. It should be understood that the
20 user has previously been validated by an authentication module. This
21 function checks for other things. Such things might be: the time of day
22 or the date, the terminal line, remote hostname, etc. This function may
23 also determine things like the expiration on passwords, and respond
24 that the user change it before continuing.
25
26 Valid flags, which may be logically OR'd with PAM_SILENT, are:
27
28 PAM_SILENT
29 Do not emit any messages.
30
31 PAM_DISALLOW_NULL_AUTHTOK
32 Return PAM_AUTH_ERR if the database of authentication tokens for
33 this authentication mechanism has a NULL entry for the user.
34
36 PAM_ACCT_EXPIRED
37 User account has expired.
38
39 PAM_AUTH_ERR
40 Authentication failure.
41
42 PAM_NEW_AUTHTOK_REQD
43 The user's authentication token has expired. Before calling this
44 function again the application will arrange for a new one to be
45 given. This will likely result in a call to pam_sm_chauthtok().
46
47 PAM_PERM_DENIED
48 Permission denied.
49
50 PAM_SUCCESS
51 The authentication token was successfully updated.
52
53 PAM_USER_UNKNOWN
54 User unknown to password service.
55
57 pam(3), pam_acct_mgmt(3), pam_sm_chauthtok(3), pam_strerror(3), PAM(8)
58
59
60
61Linux-PAM Manual 06/08/2020 PAM_SM_ACCT_MGMT(3)