NAME
saslserverinit - SASL server authentication initialization
SYNOPSIS
##iinncclluuddee <
iinntt ssaassllsseerrvveerriinniitt((ccoonnsstt ssaassllccaallllbbaacckktt *callbacks,, ccoonnsstt cchhaarr *appname));;> DESCRIPTION
ssaassllsseerrvveerriinniitt(()) initializes SASL. It must be called before any calls to saslserverstart, and only once per process. This call initializes all SASL mechanism drivers (e.g. authentication mechanisms). These are usually found in the /usr/lib/sasl2 directory but the directory may be overriden with the SASLPATH enviornment variable (or at compile time). callbacks specifies the base callbacks for all client connections. See the saslcallbacks man page for more information. appname is the name of the application. It is used for where to find the default configuration file. RREETTUURRNN VVAALLUUEE saslserverinit returns an integer which corresponds to one of the SASL error codes. SASLOK is the only one that indicates success. Allothers indicate errors and should either be handled or the authentica-
tion session should be quit. CCOONNFFOORRMMIINNGG TTOO RFC 2222SEE ALSO
sasl(3), saslcallbacks(3), saslerrors(3), saslservernew(3), saslserverstart(3), saslserverstep(3) SASL man pages SASL saslserverinit(10 July 2001)