ldap_get_option() gets session preferences from an LDAP structure. For more information on the options you can retrieve, see "Setting Preferences" on page 53.
#include <ldap.h>
int ldap_get_option( LDAP *ld, int option, void *optdata );
ld |
Connection handle, which is a pointer to an |
option | |
optdata | Pointer to the buffer in which the value of the option will be put. |
#include <ldap.h>
...
LDAP *ld;
int max_ret;
...
/* Get the maximum number of entries returned */
if (ldap_get_option, LDAP_OPT_SIZELIMIT, &max_ret) != LDAP_SUCCESS) {ldap_perror( ld, "ldap_get_option" );
return( 1 );
}
ldap_init(), ldap_set_option().
Last Updated: 10/01/98 17:06:23