1 .\" <!-- $Id: auth_passwd.sgml,v 1.3 2007/04/01 00:21:34 mrsam Exp $ -->
2 .\" <!-- Copyright 2004 Double Precision, Inc. See COPYING for -->
3 .\" <!-- distribution information. -->
6 .\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
8 .\" Manual: Double Precision, Inc.
9 .\" Source: Double Precision, Inc.
11 .TH "AUTH_PASSWD" "3" "04/06/2007" "Double Precision, Inc." "Double Precision, Inc."
12 .\" disable hyphenation
14 .\" disable justification (adjust text to left margin only)
17 auth_passwd \- Change account's password
22 #include <courierauth.h>
26 .BI "int rc=auth_passwd(const\ char\ *" "service" ", const\ char\ *" "username" ", const\ char\ *" "oldpassword" ", const\ char\ *" "newpassword" ");"
30 \fIusername\fR's password is
31 \fIoldpassword\fR, it is replaced with
34 identifies which so\-called "service"'s password is changed; like
37 \(lqpop3\(rq. Some Courier authentication library's back\-end module can use different passwords for different services.
39 is ignored if this is not the case.
44 returns 0 if the password was succesfully changed. A non\-0 error code indicates a failure..
48 \fI\fBauthlib\fR(3)\fR\&[1],
49 \fI\fBauth_generic\fR(3)\fR\&[2],
50 \fI\fBauth_login\fR(3)\fR\&[3],
51 \fI\fBauth_getuserinfo\fR(3)\fR\&[4],
52 \fI\fBauth_enumerate\fR(3)\fR\&[5].
70 \fBauth_getuserinfo\fR(3)
72 \%auth_getuserinfo.html
75 \fBauth_enumerate\fR(3)