1.. saslman:: sasl_authorize_t(3)
2
3.. _sasl-reference-manpages-library-sasl_authorize_t:
4
5======================================================
6**sasl_authorize_t** - The SASL authorization callback
7======================================================
8
9Synopsis
10========
11
12.. parsed-literal::
13
14    #include <sasl/sasl.h>
15
16
17    int sasl_authorize_t(void \*context,
18                        const char \*requested_user, unsigned alen,
19                        const char \*auth_identity, unsigned alen,
20                        const char \*def_realm, unsigned urlen,
21                        struct propctx \*propctx)
22
23Description
24===========
25
26**sasl_authorize_t**  is  used to check whether the authorized
27user auth_identity may act  as  the  user  requested_user.
28For  example  the  user root may wish to authenticate with
29his credentials but act as the user mmercer (with  all  of
30mmercer's  rights  not roots). A server application should
31be very careful, and probably err on the side of  caution,
32when determining which users may proxy as whom.
33
34
35Return Value
36============
37
38SASL  callback  functions should return SASL return codes.
39See sasl.h for a complete list. :c:macro:`SASL_OK` indicates success.
40
41See Also
42========
43
44:saslman:`sasl(3)`, :saslman:`sasl_callbacks(3)`
45