LDAP_OPT_DEREF
Use the LDAP_OPT_DEREF setting to specify alternative rules for following aliases at the server.
The default is LDAP_DEREF_NEVER.
Supported values:
- LDAP_DEREF_NEVER 0
- LDAP_DEREF_SEARCHING 1
- LDAP_DEREF_FINDING 2
- LDAP_DEREF_ALWAYS 3
int deref = LDAP_DEREF_NEVER;
ldap_set_option( ld, LDAP_OPT_DEREF, &deref);
ldap_get_option( ld, LDAP_OPT_DEREF, &deref);