pam_chauthtok.3.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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_chauthtok'>
  5. <refmeta>
  6. <refentrytitle>pam_chauthtok</refentrytitle>
  7. <manvolnum>3</manvolnum>
  8. <refmiscinfo class='setdesc'>Linux-PAM Manual</refmiscinfo>
  9. </refmeta>
  10. <refnamediv id="pam_chauthtok-name">
  11. <refname>pam_chauthtok</refname>
  12. <refpurpose>updating authentication tokens</refpurpose>
  13. </refnamediv>
  14. <!-- body begins here -->
  15. <refsynopsisdiv>
  16. <funcsynopsis id='pam_chauthtok-synopsis'>
  17. <funcsynopsisinfo>#include &lt;security/pam_appl.h&gt;</funcsynopsisinfo>
  18. <funcprototype>
  19. <funcdef>int <function>pam_chauthtok</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_chauthtok-description'>
  26. <title>DESCRIPTION</title>
  27. <para>
  28. The <function>pam_chauthtok</function> function is used to change the
  29. authentication token for a given user (as indicated by the state
  30. associated with the handle <emphasis>pamh</emphasis>).
  31. </para>
  32. <para>
  33. The <emphasis>pamh</emphasis> argument is an authentication
  34. handle obtained by a prior call to pam_start().
  35. The flags argument is the binary or of zero or more of the
  36. following values:
  37. </para>
  38. <variablelist>
  39. <varlistentry>
  40. <term>PAM_SILENT</term>
  41. <listitem>
  42. <para>
  43. Do not emit any messages.
  44. </para>
  45. </listitem>
  46. </varlistentry>
  47. <varlistentry>
  48. <term>PAM_CHANGE_EXPIRED_AUTHTOK</term>
  49. <listitem>
  50. <para>
  51. This argument indicates to the modules that the user's
  52. authentication token (password) should only be changed
  53. if it has expired.
  54. If this argument is not passed, the application requires
  55. that all authentication tokens are to be changed.
  56. </para>
  57. </listitem>
  58. </varlistentry>
  59. </variablelist>
  60. </refsect1>
  61. <refsect1 id="pam_chauthtok-return_values">
  62. <title>RETURN VALUES</title>
  63. <variablelist>
  64. <varlistentry>
  65. <term>PAM_AUTHTOK_ERR</term>
  66. <listitem>
  67. <para>
  68. A module was unable to obtain the new authentication token.
  69. </para>
  70. </listitem>
  71. </varlistentry>
  72. <varlistentry>
  73. <term>PAM_AUTHTOK_RECOVERY_ERR</term>
  74. <listitem>
  75. <para>
  76. A module was unable to obtain the old authentication token.
  77. </para>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry>
  81. <term>PAM_AUTHTOK_LOCK_BUSY</term>
  82. <listitem>
  83. <para>
  84. One or more of the modules was unable to change the
  85. authentication token since it is currently locked.
  86. </para>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry>
  90. <term>PAM_AUTHTOK_DISABLE_AGING</term>
  91. <listitem>
  92. <para>
  93. Authentication token aging has been disabled for at least
  94. one of the modules.
  95. </para>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry>
  99. <term>PAM_PERM_DENIED</term>
  100. <listitem>
  101. <para>
  102. Permission denied.
  103. </para>
  104. </listitem>
  105. </varlistentry>
  106. <varlistentry>
  107. <term>PAM_SUCCESS</term>
  108. <listitem>
  109. <para>
  110. The authentication token was successfully updated.
  111. </para>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry>
  115. <term>PAM_TRY_AGAIN</term>
  116. <listitem>
  117. <para>
  118. Not all of the modules were in a position to update the
  119. authentication token(s). In such a case none of the user's
  120. authentication tokens are updated.
  121. </para>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry>
  125. <term>PAM_USER_UNKNOWN</term>
  126. <listitem>
  127. <para>
  128. User unknown to password service.
  129. </para>
  130. </listitem>
  131. </varlistentry>
  132. </variablelist>
  133. </refsect1>
  134. <refsect1 id='pam_chauthtok-see_also'>
  135. <title>SEE ALSO</title>
  136. <para>
  137. <citerefentry>
  138. <refentrytitle>pam_start</refentrytitle><manvolnum>3</manvolnum>
  139. </citerefentry>,
  140. <citerefentry>
  141. <refentrytitle>pam_authenticate</refentrytitle><manvolnum>3</manvolnum>
  142. </citerefentry>,
  143. <citerefentry>
  144. <refentrytitle>pam_setcred</refentrytitle><manvolnum>3</manvolnum>
  145. </citerefentry>,
  146. <citerefentry>
  147. <refentrytitle>pam_get_item</refentrytitle><manvolnum>3</manvolnum>
  148. </citerefentry>,
  149. <citerefentry>
  150. <refentrytitle>pam_strerror</refentrytitle><manvolnum>3</manvolnum>
  151. </citerefentry>,
  152. <citerefentry>
  153. <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
  154. </citerefentry>
  155. </para>
  156. </refsect1>
  157. </refentry>