2 .\" Copyright (c) 1998, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH PAM_ACCT_MGMT 3PAM "Oct 13, 1998"
8 pam_acct_mgmt \- perform PAM account validation procedures
12 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lpam\fR [ \fIlibrary\fR ... ]
13 #include <security/pam_appl.h>
17 \fBint\fR \fBpam_acct_mgmt\fR(\fBpam_handle_t *\fR\fIpamh\fR, \fBint\fR \fIflags\fR);
23 The \fBpam_acct_mgmt()\fR function is called to determine if the current user's
24 account is valid. It checks for password and account expiration, and verifies
25 access hour restrictions. This function is typically called after the user has
26 been authenticated with \fBpam_authenticate\fR(3PAM).
29 The \fIpamh\fR argument is an authentication handle obtained by a prior call to
30 \fBpam_start()\fR. The following flags may be set in the \fIflags\fR field:
34 \fB\fBPAM_SILENT\fR\fR
37 The account management service should not generate any messages.
43 \fB\fBPAM_DISALLOW_NULL_AUTHTOK\fR\fR
46 The account management service should return \fBPAM_NEW_AUTHTOK_REQD\fR if the
47 user has a null authentication token.
53 Upon successful completion, \fBPAM_SUCCESS\fR is returned. In addition to the
54 error return values described in \fBpam\fR(3PAM), the following values may be
59 \fB\fBPAM_USER_UNKNOWN\fR\fR
62 User not known to underlying account management module.
68 \fB\fBPAM_AUTH_ERR\fR\fR
71 Authentication failure.
77 \fB\fBPAM_NEW_AUTHTOK_REQD\fR\fR
80 New authentication token required. This is normally returned if the machine
81 security policies require that the password should be changed because the
82 password is \fBNULL\fR or has aged.
88 \fB\fBPAM_ACCT_EXPIRED\fR\fR
91 User account has expired.
97 See \fBattributes\fR(5) for description of the following attributes:
105 ATTRIBUTE TYPE ATTRIBUTE VALUE
107 Interface Stability Stable
109 MT-Level MT-Safe with exceptions
115 \fBpam\fR(3PAM), \fBpam_authenticate\fR(3PAM), \fBpam_start\fR(3PAM),
116 \fBlibpam\fR(3LIB), \fBattributes\fR(5)
120 The interfaces in \fBlibpam\fR are MT-Safe only if each thread within the
121 multithreaded application uses its own \fBPAM\fR handle.