1PAM_SM_ACCT_MGMT(3)            Linux-PAM Manual            PAM_SM_ACCT_MGMT(3)
2
3
4

NAME

6       pam_sm_acct_mgmt - PAM service function for account management
7

SYNOPSIS

9       #define PAM_SM_ACCOUNT
10
11       #include <security/pam_modules.h>
12
13       PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t *pamh, int flags,
14                                       int argc, const char **argv);
15

DESCRIPTION

17       The pam_sm_acct_mgmt function is the service module's implementation of
18       the pam_acct_mgmt(3) interface.
19
20       This function performs the task of establishing whether the user is
21       permitted to gain access at this time. It should be understood that the
22       user has previously been validated by an authentication module. This
23       function checks for other things. Such things might be: the time of day
24       or the date, the terminal line, remote hostname, etc. This function may
25       also determine things like the expiration on passwords, and respond
26       that the user change it before continuing.
27
28       Valid flags, which may be logically OR'd with PAM_SILENT, are:
29
30       PAM_SILENT
31           Do not emit any messages.
32
33       PAM_DISALLOW_NULL_AUTHTOK
34           Return PAM_AUTH_ERR if the database of authentication tokens for
35           this authentication mechanism has a NULL entry for the user.
36

RETURN VALUES

38       PAM_ACCT_EXPIRED
39           User account has expired.
40
41       PAM_AUTH_ERR
42           Authentication failure.
43
44       PAM_NEW_AUTHTOK_REQD
45           The user's authentication token has expired. Before calling this
46           function again the application will arrange for a new one to be
47           given. This will likely result in a call to pam_sm_chauthtok().
48
49       PAM_PERM_DENIED
50           Permission denied.
51
52       PAM_SUCCESS
53           The authentication token was successfully updated.
54
55       PAM_USER_UNKNOWN
56           User unknown to password service.
57

SEE ALSO

59       pam(3), pam_acct_mgmt(3), pam_sm_chauthtok(3), pam_strerror(3), PAM(8)
60
61
62
63Linux-PAM Manual                  09/19/2013               PAM_SM_ACCT_MGMT(3)
Impressum