Authenticates the specified client to the LDAP server using the SASL-GSSAPI mechanism.
#include <ldap_gss.h> int ldap_gssbind ( LDAP *ld, const char *host, char *mechanism, const char *dn, const char *passwd, gss_err_code *err_code);
(IN) Points to the handle for the LDAP session.
(IN) Contains the names of the available hosts, each separated by a space, or a list of IP addresses (in dot format) of the hosts, each separated by a space. If a port number is included with the name or the address, it is separated from them with a colon (:).
(IN) Supported mechanism. Set this parameter to GSSAPI (for Kerberos V5.)
(IN) Points to the distinguished name of the entry that is authenticating. Set this parameter to NULL if GSSAPI (Kerberos V5) is used as an input mechanism.
(IN) Points to the client's password. Set this parameter to NULL if GSSAPI (Kerberos V5) is used as input mechanism.
(OUT) Points to the requested attribute names and values.