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 .\" $DragonFly: src/contrib/libpam/doc/man/Attic/pam_chauthtok.3,v 1.2 2003/06/17 04:24:02 dillon Exp $
5 .\" Copyright (c) Andrew G. Morgan 1997 <morgan@parc.power.net>
6 .TH PAM_CHAUTHTOK 3 "1997 Jan 4" "PAM 0.55" "App. Programmers' Manual"
9 pam_chauthtok \- updating authentication tokens
12 .B #include <security/pam_appl.h>
14 .BI "int pam_chauthtok(pam_handle_t " *pamh ", int " flags ");"
20 Use this function to rejuvenate the authentication tokens (passwords
21 etc.) of an applicant user.
24 Note, the application should not pre-authenticate the user, as this is
25 performed (if required) by the
35 .BR PAM_CHANGE_EXPIRED_AUTHTOK "."
36 In such cases the framework is only required to update those
37 authentication tokens that have expired. Without this argument, the
38 framework will attempt to obtain new tokens for all configured
39 authentication mechanisms. The details of the types and number of such
40 schemes should not concern the calling application.
43 A successful return from this function will be indicated with
47 Specific errors of special interest when calling this function are
51 - a valid new token was not obtained
54 .BR PAM_AUTHTOK_RECOVERY_ERR
55 - old authentication token was not available
58 .BR PAM_AUTHTOK_LOCK_BUSY
59 - a resource needed to update the token was locked (try again later)
62 .BR PAM_AUTHTOK_DISABLE_AGING
63 - one or more of the authentication modules does not honor
64 authentication token aging
68 - one or more authentication mechanism is not prepared to update a
72 In general other return values may be returned. They should be treated
73 as indicating failure.
76 May be translated to text with
77 .BR pam_strerror "(3). "
80 DCE-RFC 86.0, October 1995.
89 .BR pam_authenticate "(3), "
90 .BR pam_setcred "(3), "
91 .BR pam_get_item "(3), "
92 .BR pam_strerror "(3) "
100 .BR "System administrators" ", "
101 .BR "module developers" ", "
103 .BR "application developers" ". "