Initial Release 6

Function : LDAP
ldap_set_option - Used to set LDAP session preferences.
----------------------------------------------------------------------------------------------------------

#include <ldap.h>

int LNPUBLIC ldap_set_option(
LDAP *ld,
int optionToSet,
void *optionValue);

Description :

This function is used to set the current value of various session-wide parameters.
Parameters :

Sample Usage :


    WORD ldap_debug_level = 0;

    ldap_debug_level = LDAP_DEBUG_API;
    ldap_set_option (NULL, LDAP_OPT_DEBUG_LEVEL, &ldap_debug_level);

See Also :

ldap_get_option
----------------------------------------------------------------------------------------------------------