release
[hcoop/debian/courier-authlib.git] / auth_passwd.3
CommitLineData
d9898ee8 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. -->
4.\" Title: auth_passwd
5.\" Author:
8d138742
CE
6.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
7.\" Date: 08/23/2008
d9898ee8 8.\" Manual: Double Precision, Inc.
9.\" Source: Double Precision, Inc.
10.\"
8d138742 11.TH "AUTH_PASSWD" "3" "08/23/2008" "Double Precision, Inc." "Double Precision, Inc."
d9898ee8 12.\" disable hyphenation
13.nh
14.\" disable justification (adjust text to left margin only)
15.ad l
16.SH "NAME"
8d138742 17auth_passwd - Change account's password
d9898ee8 18.SH "SYNOPSIS"
19.sp
20.RS 4
21.nf
8d138742 22#include <courierauth\.h>
d9898ee8 23.fi
24.RE
25.HP 19
26.BI "int rc=auth_passwd(const\ char\ *" "service" ", const\ char\ *" "username" ", const\ char\ *" "oldpassword" ", const\ char\ *" "newpassword" ");"
27.SH "DESCRIPTION"
28.PP
29If
8d138742 30\fIusername\fR\'s password is
d9898ee8 31\fIoldpassword\fR, it is replaced with
8d138742 32\fInewpassword\fR\.
d9898ee8 33\fIservice\fR
8d138742 34identifies which so\-called "service"\'s password is changed; like
d9898ee8 35\(lqimap\(rq
36or
8d138742 37\(lqpop3\(rq\. Some Courier authentication library\'s back\-end module can use different passwords for different services\.
d9898ee8 38\fIservice\fR
8d138742 39is ignored if this is not the case\.
d9898ee8 40.SH "RETURNS"
41.PP
42
43\fBauth_passwd\fR
8d138742 44returns 0 if the password was succesfully changed\. A non\-0 error code indicates a failure\.\.
d9898ee8 45.SH "SEE ALSO"
46.PP
47
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],
8d138742
CE
52\fI\fBauth_enumerate\fR(3)\fR\&[5]\.
53.SH "NOTES"
d9898ee8 54.IP " 1." 4
55\fBauthlib\fR(3)
56.RS 4
57\%authlib.html
58.RE
59.IP " 2." 4
60\fBauth_generic\fR(3)
61.RS 4
62\%auth_generic.html
63.RE
64.IP " 3." 4
65\fBauth_login\fR(3)
66.RS 4
67\%auth_login.html
68.RE
69.IP " 4." 4
70\fBauth_getuserinfo\fR(3)
71.RS 4
72\%auth_getuserinfo.html
73.RE
74.IP " 5." 4
75\fBauth_enumerate\fR(3)
76.RS 4
77\%auth_enumerate.html
78.RE