1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\" $Id: pam_chauthtok.3,v 1.2 1997/02/15 18:42:23 morgan Exp $
3 .\" $FreeBSD: src/contrib/libpam/doc/man/pam_chauthtok.3,v 1.2.6.2 2001/06/11 15:28:11 markm Exp $
4 .\" Copyright (c) Andrew G. Morgan 1997 <morgan@parc.power.net>
5 .TH PAM_CHAUTHTOK 3 "1997 Jan 4" "PAM 0.55" "App. Programmers' Manual"
8 pam_chauthtok \- updating authentication tokens
11 .B #include <security/pam_appl.h>
13 .BI "int pam_chauthtok(pam_handle_t " *pamh ", int " flags ");"
19 Use this function to rejuvenate the authentication tokens (passwords
20 etc.) of an applicant user.
23 Note, the application should not pre-authenticate the user, as this is
24 performed (if required) by the
34 .BR PAM_CHANGE_EXPIRED_AUTHTOK "."
35 In such cases the framework is only required to update those
36 authentication tokens that have expired. Without this argument, the
37 framework will attempt to obtain new tokens for all configured
38 authentication mechanisms. The details of the types and number of such
39 schemes should not concern the calling application.
42 A successful return from this function will be indicated with
46 Specific errors of special interest when calling this function are
50 - a valid new token was not obtained
53 .BR PAM_AUTHTOK_RECOVERY_ERR
54 - old authentication token was not available
57 .BR PAM_AUTHTOK_LOCK_BUSY
58 - a resource needed to update the token was locked (try again later)
61 .BR PAM_AUTHTOK_DISABLE_AGING
62 - one or more of the authentication modules does not honor
63 authentication token aging
67 - one or more authentication mechanism is not prepared to update a
71 In general other return values may be returned. They should be treated
72 as indicating failure.
75 May be translated to text with
76 .BR pam_strerror "(3). "
79 DCE-RFC 86.0, October 1995.
88 .BR pam_authenticate "(3), "
89 .BR pam_setcred "(3), "
90 .BR pam_get_item "(3), "
91 .BR pam_strerror "(3) "
99 .BR "System administrators" ", "
100 .BR "module developers" ", "
102 .BR "application developers" ". "