1sasl_setpass(S3iSmApSlLe)Authentication Security Layer Library Funscatsilo_nssetpass(3SASL)
2
3
4

NAME

6       sasl_setpass - set the password for a user
7

SYNOPSIS

9       cc [ flag ... ] file ... -lsasl   [ library ... ]
10       #include <sasl/sasl.h>
11
12       int sasl_setpass(sasl_conn_t *conn, const char *user, const char *pass,
13            unsigned passlen, const char *oldpass, unsigned oldpasslen,
14            unsigned flags);
15
16

DESCRIPTION

18       Use  the sasl_setpass() interface to set passwords. sasl_setpass() uses
19       the SASL_CB_SERVER_USERDB_SETPASS callback, if one is  supplied.  Addi‐
20       tionally,  if  any  server mechanism plugins supply a setpass callback,
21       the setpass callback would be called.  None  of  the  server  mechanism
22       plugins currently supply a setpass callback.
23

PARAMETERS

25       conn          The SASL connection context
26
27
28       user          The username for which the password is set
29
30
31       pass          The password to set
32
33
34       passlen       The length of pass
35
36
37       oldpass       The old password, which is optional
38
39
40       oldpasslen    The length of oldpass, which is optional
41
42
43       flags         Refers   to   flags,   including,   SASL_SET_CREATE   and
44                     SASL_SET_DISABLE. Use these flags to create  and  disable
45                     accounts.
46
47

RETURN VALUES

49       sasl_setpass()  returns  an  integer  that  corresponds to a SASL error
50       code.
51

ERRORS

53       SASL_OK    The call to sasl_setpass() was successful.
54
55
56
57       See sasl_errors(3SASL) for information on SASL error codes.
58

ATTRIBUTES

60       See attributes(5) for descriptions of the following attributes:
61
62
63
64
65       ┌─────────────────────────────┬─────────────────────────────┐
66       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
67       ├─────────────────────────────┼─────────────────────────────┤
68       │Availability                 │SUNWlibsasl                  │
69       ├─────────────────────────────┼─────────────────────────────┤
70       │Interface Stability          │Evolving                     │
71       ├─────────────────────────────┼─────────────────────────────┤
72       │MT-Level                     │MT-Safe                      │
73       └─────────────────────────────┴─────────────────────────────┘
74

SEE ALSO

76       sasl_errors(3SASL), sasl_getprop(3SASL), attributes(5)
77
78
79
80SunOS 5.11                        15 Oct 2003              sasl_setpass(3SASL)
Impressum