2 .\" Copyright (C) 1998-2003, Carnegie Mellon Univeristy. All Rights Reserved.
3 .\" Portions Copyright (C) 2003, Sun Microsystems,
4 .\" Inc. All Rights Reserved
5 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
7 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
8 .TH SASL_SETPASS 3SASL "Oct 15, 2003"
10 sasl_setpass \- set the password for a user
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsasl\fR [ \fIlibrary\fR ... ]
15 #include <sasl/sasl.h>
17 \fBint\fR \fBsasl_setpass\fR(\fBsasl_conn_t *\fR\fIconn\fR, \fBconst char *\fR\fIuser\fR, \fBconst char *\fR\fIpass\fR,
18 \fBunsigned\fR \fIpasslen\fR, \fBconst char *\fR\fIoldpass\fR, \fBunsigned\fR \fIoldpasslen\fR,
19 \fBunsigned\fR \fIflags\fR);
25 Use the \fBsasl_setpass()\fR interface to set passwords. \fBsasl_setpass()\fR
26 uses the \fBSASL_CB_SERVER_USERDB_SETPASS\fR callback, if one is supplied.
27 Additionally, if any server mechanism plugins supply a setpass callback, the
28 setpass callback would be called. None of the server mechanism plugins
29 currently supply a setpass callback.
37 The SASL connection context
46 The username for which the password is set
64 The length of \fIpass\fR
73 The old password, which is optional
79 \fB\fIoldpasslen\fR\fR
82 The length of \fIoldpass\fR, which is optional
91 Refers to flags, including, \fBSASL_SET_CREATE\fR and \fBSASL_SET_DISABLE\fR.
92 Use these flags to create and disable accounts.
98 \fBsasl_setpass()\fR returns an integer that corresponds to a SASL error code.
106 The call to \fBsasl_setpass()\fR was successful.
111 See \fBsasl_errors\fR(3SASL) for information on SASL error codes.
115 See \fBattributes\fR(5) for descriptions of the following attributes:
123 ATTRIBUTE TYPE ATTRIBUTE VALUE
125 Interface Stability Evolving
133 \fBsasl_errors\fR(3SASL), \fBsasl_getprop\fR(3SASL), \fBattributes\fR(5)