pam_acct_mgmt.3.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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'>
  5. <refmeta>
  6. <refentrytitle>pam_acct_mgmt</refentrytitle>
  7. <manvolnum>3</manvolnum>
  8. <refmiscinfo class='setdesc'>Linux-PAM Manual</refmiscinfo>
  9. </refmeta>
  10. <refnamediv id="pam_acct_mgmt-name">
  11. <refname>pam_acct_mgmt</refname>
  12. <refpurpose>PAM account validation management</refpurpose>
  13. </refnamediv>
  14. <!-- body begins here -->
  15. <refsynopsisdiv>
  16. <funcsynopsis id='pam_acct_mgmt-synopsis'>
  17. <funcsynopsisinfo>#include &lt;security/pam_appl.h&gt;</funcsynopsisinfo>
  18. <funcprototype>
  19. <funcdef>int <function>pam_acct_mgmt</function></funcdef>
  20. <paramdef>pam_handle_t *<parameter>pamh</parameter></paramdef>
  21. <paramdef>int <parameter>flags</parameter></paramdef>
  22. </funcprototype>
  23. </funcsynopsis>
  24. </refsynopsisdiv>
  25. <refsect1 id='pam_acct_mgmt-description'>
  26. <title>DESCRIPTION</title>
  27. <para>
  28. The <function>pam_acct_mgmt</function> function is used to determine
  29. if the user's account is valid. It checks for authentication token
  30. and account expiration and verifies access restrictions. It is
  31. typically called after the user has been authenticated.
  32. </para>
  33. <para>
  34. The <emphasis>pamh</emphasis> argument is an authentication
  35. handle obtained by a prior call to pam_start().
  36. The flags argument is the binary or of zero or more of the
  37. following values:
  38. </para>
  39. <variablelist>
  40. <varlistentry>
  41. <term>PAM_SILENT</term>
  42. <listitem>
  43. <para>
  44. Do not emit any messages.
  45. </para>
  46. </listitem>
  47. </varlistentry>
  48. <varlistentry>
  49. <term>PAM_DISALLOW_NULL_AUTHTOK</term>
  50. <listitem>
  51. <para>
  52. The PAM module service should return PAM_NEW_AUTHTOK_REQD
  53. if the user has a null authentication token.
  54. </para>
  55. </listitem>
  56. </varlistentry>
  57. </variablelist>
  58. </refsect1>
  59. <refsect1 id="pam_acct_mgmt-return_values">
  60. <title>RETURN VALUES</title>
  61. <variablelist>
  62. <varlistentry>
  63. <term>PAM_ACCT_EXPIRED</term>
  64. <listitem>
  65. <para>
  66. User account has expired.
  67. </para>
  68. </listitem>
  69. </varlistentry>
  70. <varlistentry>
  71. <term>PAM_AUTH_ERR</term>
  72. <listitem>
  73. <para>
  74. Authentication failure.
  75. </para>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry>
  79. <term>PAM_NEW_AUTHTOK_REQD</term>
  80. <listitem>
  81. <para>
  82. The user account is valid but their authentication token
  83. is <emphasis>expired</emphasis>. The correct response to
  84. this return-value is to require that the user satisfies
  85. the <function>pam_chauthtok()</function> function before
  86. obtaining service. It may not be possible for some
  87. applications to do this. In such cases, the user should be
  88. denied access until such time as they can update their password.
  89. </para>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry>
  93. <term>PAM_PERM_DENIED</term>
  94. <listitem>
  95. <para>
  96. Permission denied.
  97. </para>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry>
  101. <term>PAM_SUCCESS</term>
  102. <listitem>
  103. <para>
  104. The authentication token was successfully updated.
  105. </para>
  106. </listitem>
  107. </varlistentry>
  108. <varlistentry>
  109. <term>PAM_USER_UNKNOWN</term>
  110. <listitem>
  111. <para>
  112. User unknown to password service.
  113. </para>
  114. </listitem>
  115. </varlistentry>
  116. </variablelist>
  117. </refsect1>
  118. <refsect1 id='pam_acct_mgmt-see_also'>
  119. <title>SEE ALSO</title>
  120. <para>
  121. <citerefentry>
  122. <refentrytitle>pam_start</refentrytitle><manvolnum>3</manvolnum>
  123. </citerefentry>,
  124. <citerefentry>
  125. <refentrytitle>pam_authenticate</refentrytitle><manvolnum>3</manvolnum>
  126. </citerefentry>,
  127. <citerefentry>
  128. <refentrytitle>pam_chauthtok</refentrytitle><manvolnum>3</manvolnum>
  129. </citerefentry>,
  130. <citerefentry>
  131. <refentrytitle>pam_strerror</refentrytitle><manvolnum>3</manvolnum>
  132. </citerefentry>,
  133. <citerefentry>
  134. <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
  135. </citerefentry>
  136. </para>
  137. </refsect1>
  138. </refentry>