1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4 <refentry id='pam_acct_mgmt'>
6 <refentrytitle>pam_acct_mgmt</refentrytitle>
7 <manvolnum>3</manvolnum>
8 <refmiscinfo class='setdesc'>Linux-PAM Manual</refmiscinfo>
11 <refnamediv id="pam_acct_mgmt-name">
12 <refname>pam_acct_mgmt</refname>
13 <refpurpose>PAM account validation management</refpurpose>
16 <!-- body begins here -->
19 <funcsynopsis id='pam_acct_mgmt-synopsis'>
20 <funcsynopsisinfo>#include <security/pam_appl.h></funcsynopsisinfo>
22 <funcdef>int <function>pam_acct_mgmt</function></funcdef>
23 <paramdef>pam_handle_t *<parameter>pamh</parameter></paramdef>
24 <paramdef>int <parameter>flags</parameter></paramdef>
30 <refsect1 id='pam_acct_mgmt-description'>
31 <title>DESCRIPTION</title>
33 The <function>pam_acct_mgmt</function> function is used to determine
34 if the users account is valid. It checks for authentication token
35 and account expiration and verifies access restrictions. It is
36 typically called after the user has been authenticated.
39 The <emphasis>pamh</emphasis> argument is an authentication
40 handle obtained by a prior call to pam_start().
41 The flags argument is the binary or of zero or more of the
46 <term>PAM_SILENT</term>
49 Do not emit any messages.
54 <term>PAM_DISALLOW_NULL_AUTHTOK</term>
57 The PAM module service should return PAM_NEW_AUTHTOK_REQD
58 if the user has a null authentication token.
65 <refsect1 id="pam_acct_mgmt-return_values">
66 <title>RETURN VALUES</title>
69 <term>PAM_ACCT_EXPIRED</term>
72 User account has expired.
77 <term>PAM_AUTH_ERR</term>
80 Authentication failure.
85 <term>PAM_NEW_AUTHTOK_REQD</term>
88 The user account is valid but their authentication token
89 is <emphasis>expired</emphasis>. The correct response to
90 this return-value is to require that the user satisfies
91 the <function>pam_chauthtok()</function> function before
92 obtaining service. It may not be possible for some
93 applications to do this. In such cases, the user should be
94 denied access until such time as they can update their password.
99 <term>PAM_PERM_DENIED</term>
107 <term>PAM_SUCCESS</term>
110 The authentication token was successfully updated.
115 <term>PAM_USER_UNKNOWN</term>
118 User unknown to password service.
125 <refsect1 id='pam_acct_mgmt-see_also'>
126 <title>SEE ALSO</title>
129 <refentrytitle>pam_start</refentrytitle><manvolnum>3</manvolnum>
132 <refentrytitle>pam_authenticate</refentrytitle><manvolnum>3</manvolnum>
135 <refentrytitle>pam_chauthtok</refentrytitle><manvolnum>3</manvolnum>
138 <refentrytitle>pam_strerror</refentrytitle><manvolnum>3</manvolnum>
141 <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>