1sasl_setpass(10 July 2001)                          sasl_setpass(10 July 2001)
2
3
4

NAME

6       sasl_setpass - Check a plaintext password
7

SYNOPSIS

9       #include <sasl/sasl.h>
10
11       int sasl_setpass(sasl_conn_t *conn,
12                        const char *user,
13                        const char *pass, unsigned passlen,
14                         const char *oldpass, unsigned oldpasslen,
15                         unsigned flags)
16
17

DESCRIPTION

19       sasl_setpass  will set passwords in the sasldb, and trigger the setpass
20       callbacks for all available mechanisms.
21
22       user is the username to set the password for.
23
24       pass and passlen are the password to set and its length
25
26       oldpass and oldpasslen are the old  password  &  its  length  (and  are
27       optional)
28
29       flags  Are  flags  including  SASL_SET_CREATE  and SASL_SET_DISABLE (to
30       cause the creating of nonexistent accounts  and  the  disabling  of  an
31       account, respectively)
32
33

NOTES

35       oldpass  and  oldpasslen  are  unused in the Cyrus SASL implementation,
36       though are passed on to any mechanisms that may require them.
37
38

RETURN VALUE

40       Returns SASL_OK on success. SASL error code on failure.
41
42

CONFORMING TO

44       RFC 2222
45

SEE ALSO

47       sasl(3), sasl_errors(3), sasl_checkpass(3)
48
49
50
51SASL man pages                       SASL           sasl_setpass(10 July 2001)
Impressum