pam_sm_acct_mgmt.3.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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_sm_acct_mgmt'>
  5. <refmeta>
  6. <refentrytitle>pam_sm_acct_mgmt</refentrytitle>
  7. <manvolnum>3</manvolnum>
  8. <refmiscinfo class='setdesc'>Linux-PAM Manual</refmiscinfo>
  9. </refmeta>
  10. <refnamediv id="pam_sm_acct_mgmt-name">
  11. <refname>pam_sm_acct_mgmt</refname>
  12. <refpurpose>PAM service function for account management</refpurpose>
  13. </refnamediv>
  14. <!-- body begins here -->
  15. <refsynopsisdiv>
  16. <funcsynopsis id='pam_sm_acct_mgmt-synopsis'>
  17. <funcsynopsisinfo>#include &lt;security/pam_modules.h&gt;</funcsynopsisinfo>
  18. <funcprototype>
  19. <funcdef>int <function>pam_sm_acct_mgmt</function></funcdef>
  20. <paramdef>pam_handle_t *<parameter>pamh</parameter></paramdef>
  21. <paramdef>int <parameter>flags</parameter></paramdef>
  22. <paramdef>int <parameter>argc</parameter></paramdef>
  23. <paramdef>const char **<parameter>argv</parameter></paramdef>
  24. </funcprototype>
  25. </funcsynopsis>
  26. </refsynopsisdiv>
  27. <refsect1 id='pam_sm_acct_mgmt-description'>
  28. <title>DESCRIPTION</title>
  29. <para>
  30. The <function>pam_sm_acct_mgmt</function> function is the service
  31. module's implementation of the
  32. <citerefentry>
  33. <refentrytitle>pam_acct_mgmt</refentrytitle><manvolnum>3</manvolnum>
  34. </citerefentry> interface.
  35. </para>
  36. <para>
  37. This function performs the task of establishing whether the user is
  38. permitted to gain access at this time. It should be understood that
  39. the user has previously been validated by an authentication
  40. module. This function checks for other things. Such things might be:
  41. the time of day or the date, the terminal line, remote hostname, etc.
  42. This function may also determine things like the expiration on
  43. passwords, and respond that the user change it before continuing.
  44. </para>
  45. <para>
  46. Valid flags, which may be logically OR'd with
  47. <emphasis>PAM_SILENT</emphasis>, are:
  48. </para>
  49. <variablelist>
  50. <varlistentry>
  51. <term>PAM_SILENT</term>
  52. <listitem>
  53. <para>
  54. Do not emit any messages.
  55. </para>
  56. </listitem>
  57. </varlistentry>
  58. <varlistentry>
  59. <term>PAM_DISALLOW_NULL_AUTHTOK</term>
  60. <listitem>
  61. <para>
  62. Return <emphasis remap='B'>PAM_AUTH_ERR</emphasis> if the
  63. database of authentication tokens for this authentication
  64. mechanism has a <emphasis>NULL</emphasis> entry for the user.
  65. </para>
  66. </listitem>
  67. </varlistentry>
  68. </variablelist>
  69. </refsect1>
  70. <refsect1 id="pam_sm_acct_mgmt-return_values">
  71. <title>RETURN VALUES</title>
  72. <variablelist>
  73. <varlistentry>
  74. <term>PAM_ACCT_EXPIRED</term>
  75. <listitem>
  76. <para>
  77. User account has expired.
  78. </para>
  79. </listitem>
  80. </varlistentry>
  81. <varlistentry>
  82. <term>PAM_AUTH_ERR</term>
  83. <listitem>
  84. <para>
  85. Authentication failure.
  86. </para>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry>
  90. <term>PAM_NEW_AUTHTOK_REQD</term>
  91. <listitem>
  92. <para>
  93. The user's authentication token has expired. Before calling
  94. this function again the application will arrange for a new
  95. one to be given. This will likely result in a call to
  96. <function>pam_sm_chauthtok()</function>.
  97. </para>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry>
  101. <term>PAM_PERM_DENIED</term>
  102. <listitem>
  103. <para>
  104. Permission denied.
  105. </para>
  106. </listitem>
  107. </varlistentry>
  108. <varlistentry>
  109. <term>PAM_SUCCESS</term>
  110. <listitem>
  111. <para>
  112. The authentication token was successfully updated.
  113. </para>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry>
  117. <term>PAM_USER_UNKNOWN</term>
  118. <listitem>
  119. <para>
  120. User unknown to password service.
  121. </para>
  122. </listitem>
  123. </varlistentry>
  124. </variablelist>
  125. </refsect1>
  126. <refsect1 id='pam_sm_acct_mgmt-see_also'>
  127. <title>SEE ALSO</title>
  128. <para>
  129. <citerefentry>
  130. <refentrytitle>pam</refentrytitle><manvolnum>3</manvolnum>
  131. </citerefentry>,
  132. <citerefentry>
  133. <refentrytitle>pam_acct_mgmt</refentrytitle><manvolnum>3</manvolnum>
  134. </citerefentry>,
  135. <citerefentry>
  136. <refentrytitle>pam_sm_chauthtok</refentrytitle><manvolnum>3</manvolnum>
  137. </citerefentry>,
  138. <citerefentry>
  139. <refentrytitle>pam_strerror</refentrytitle><manvolnum>3</manvolnum>
  140. </citerefentry>,
  141. <citerefentry>
  142. <refentrytitle>PAM</refentrytitle><manvolnum>8</manvolnum>
  143. </citerefentry>
  144. </para>
  145. </refsect1>
  146. </refentry>