ldap_gssbind

Authenticates the specified client to the LDAP server using the SASL-GSSAPI mechanism.

LDAP Version:v3
Library:*ldapsdk.*
NDS Version:8.8 or higher
Platform:Solaris, Linux, AIX, HP-UX

Syntax

  #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);
  
  

Parameters

ld

(IN) Points to the handle for the LDAP session.

host

(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 (:).

mechanism

(IN) Supported mechanism. Set this parameter to GSSAPI (for Kerberos V5.)

dn

(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.

passwd

(IN) Points to the client's password. Set this parameter to NULL if GSSAPI (Kerberos V5) is used as input mechanism.

err_code

(OUT) Points to the requested attribute names and values.

Return Values

See Also

ldap_gss_error