Man page - sasl_canon_user_t(3)
Packages contas this manual
- sasl_auxprop_getctx(3)
- sasl_chalprompt_t(3)
- sasl_server_init(3)
- sasl_done(3)
- sasl_server_step(3)
- sasl_callbacks(3)
- sasl_errors(3)
- sasl_checkapop(3)
- sasl_auxprop(3)
- sasl(3)
- sasl_idle(3)
- sasl_getsimple_t(3)
- sasl_checkpass(3)
- sasl_client_step(3)
- sasl_getpath_t(3)
- sasl_server_userdb_setpass_t(3)
- sasl_verifyfile_t(3)
- sasl_getopt_t(3)
- sasl_errdetail(3)
- sasl_decode(3)
- sasl_dispose(3)
- sasl_canon_user_t(3)
- sasl_user_exists(3)
- sasl_getconfpath_t(3)
- sasl_client_init(3)
- sasl_getprop(3)
- sasl_auxprop_request(3)
- sasl_client_start(3)
- sasl_encodev(3)
- sasl_getrealm_t(3)
- sasl_server_userdb_checkpass_t(3)
- sasl_server_new(3)
- sasl_listmech(3)
- sasl_client_new(3)
- sasl_errstring(3)
- sasl_encode(3)
- sasl_setpass(3)
- sasl_authorize_t(3)
- sasl_getsecret_t(3)
- sasl_setprop(3)
- sasl_log_t(3)
- sasl_global_listmech(3)
- sasl_server_start(3)
Package: libsasl2-dev
apt-get install libsasl2-dev
apt-get install libsasl2-dev
Manuals in package:
Documentations in package:
Manual
| SASL_CANON_USER_T(3) | Cyrus SASL | SASL_CANON_USER_T(3) |
NAME
sasl_canon_user_t - Cyrus SASL documentation
SYNOPSIS
#include <sasl/sasl.h> int sasl_canon_user_t(sasl_conn_t *conn, void *context, const char *user, unsigned ulen,
unsigned flags, const char *user_realm, char *out_user,
unsigned out_umax, unsigned *out_ulen)
DESCRIPTION
- int sasl_canon_user_t(sasl_conn_t *conn,
- void *context,
- const char *user,
- unsigned ulen,
- unsigned flags,
- const char *user_realm,
- char *out_user,
- unsigned out_umax,
- unsigned *out_ulen)
- sasl_canon_user_t is the callback for an application-supplied user canonicalization function. This function is subject to the requirements that all user canonicalization functions are: It must copy the result into the output buffers, but the output buffers and the input buffers may be the same.
- context – context from the callback record
- user – un-canonicalized username
- ulen – length of user
- flags – Either SASL_CU_AUTHID (indicating the authentication ID is being canonicalized) or SASL_CU_AUTHZID (indicating the authorization ID is to be canonicalized) or a bitwise OR of the the two.
- user_realm – Realm of authentication.
- out_user – The output buffer for the canonicalized username
- out_umax – Maximum length for out_user
- out_ulen – Actual length of out_user
- Returns
- SASL_OK indicates success. See sasl_errors(3) for a full list of SASL error codes.
CONFORMING TO
RFC 4422
SEE ALSO
sasl(3), sasl_errors(3), sasl_callbacks(3)
AUTHOR
The Cyrus Team
COPYRIGHT
1993-2016, The Cyrus Team
| 2025-02-28 | 2.1.28 |