ldap_get_option

Returns information about session preferences.

LDAP Version:v3
Library:*ldapsdk.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap.h>
  
  int   ldap_get_option (
     LDAP   *ld,
     int     option,
     void   *outvalue);
  
  

Parameters

ld

(IN) Contains the session handle. If this is NULL, the function returns information about global defaults.

option

(IN) Contains the name of the option for which information is returned (see Section 6.10, Session Preference Options).

outvalue

(OUT) Returns a pointer to a buffer that contains the information about the specified option.

Return Values

0x00

LDAP_SUCCESS

-1

Failure

Remarks

The type of buffer pointed to by the outvalue parameter depends on the option requested. For details, see Section 6.10, Session Preference Options.

See Also

ldap_set_option