.\" Title: pam_sm_acct_mgmt .\" Author: .\" Generator: DocBook XSL Stylesheets v1.73.1 .\" Date: 04/16/2008 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual .\" .TH "PAM_SM_ACCT_MGMT" "3" "04/16/2008" "Linux-PAM Manual" "Linux-PAM Manual" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .SH "NAME" pam_sm_acct_mgmt - PAM service function for account management .SH "SYNOPSIS" .sp .ft B .nf #define PAM_SM_ACCOUNT .fi .ft .sp .ft B .nf #include .fi .ft .HP 32 .BI "PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t\ *" "pamh" ", int\ " "flags" ", int\ " "argc" ", const\ char\ **" "argv" ");" .SH "DESCRIPTION" .PP The \fBpam_sm_acct_mgmt\fR function is the service module\'s implementation of the \fBpam_acct_mgmt\fR(3) interface\. .PP This function performs the task of establishing whether the user is permitted to gain access at this time\. It should be understood that the user has previously been validated by an authentication module\. This function checks for other things\. Such things might be: the time of day or the date, the terminal line, remote hostname, etc\. This function may also determine things like the expiration on passwords, and respond that the user change it before continuing\. .PP Valid flags, which may be logically OR\'d with \fIPAM_SILENT\fR, are: .PP PAM_SILENT .RS 4 Do not emit any messages\. .RE .PP PAM_DISALLOW_NULL_AUTHTOK .RS 4 Return \fBPAM_AUTH_ERR\fR if the database of authentication tokens for this authentication mechanism has a \fINULL\fR entry for the user\. .RE .SH "RETURN VALUES" .PP PAM_ACCT_EXPIRED .RS 4 User account has expired\. .RE .PP PAM_AUTH_ERR .RS 4 Authentication failure\. .RE .PP PAM_NEW_AUTHTOK_REQD .RS 4 The user\'s authentication token has expired\. Before calling this function again the application will arrange for a new one to be given\. This will likely result in a call to \fBpam_sm_chauthtok()\fR\. .RE .PP PAM_PERM_DENIED .RS 4 Permission denied\. .RE .PP PAM_SUCCESS .RS 4 The authentication token was successfully updated\. .RE .PP PAM_USER_UNKNOWN .RS 4 User unknown to password service\. .RE .SH "SEE ALSO" .PP \fBpam\fR(3), \fBpam_acct_mgmt\fR(3), \fBpam_sm_chauthtok\fR(3), \fBpam_strerror\fR(3), \fBPAM\fR(8)