LDAP_OPT_TIMELIMIT
is a flag used to tell ldap_set_option()
which option to set—its value should never change. The 1
in ldap_set_option($ldapconn, LDAP_OPT_TIMELIMIT, 1);
is the value you're setting for LDAP_OPT_TIMELIMIT
.
Since your calls to ldap_set_option
are returning TRUE
it sounds like they're working correctly. You can verify your setting with ldap_get_option()
:
if( ldap_get_option($ldapconn, LDAP_OPT_TIMELIMIT, $retVal) ) {
echo $retVal;
} else {
echo "Uh oh. Couldn't retrieve value for LDAP_OPT_TIMELIMIT.";
}