ID: 25847 Comment by: philippe dot marasse at ac-poitiers dot fr Reported By: hedrick at rutgers dot edu Status: Open Bug Type: Feature/Change Request Operating System: * PHP Version: 4.3.3 New Comment:
It seems that in both PHP 4.4.4 & PHP 5.1.6, the problem still exists. So I wrote a little patch to support only this feature (initially against PHP 5.1.4). You download the patch here : http://admin.vienneinfo.org/files/ldap.c-patch-network-timeout-5.1.4.patch Previous Comments: ------------------------------------------------------------------------ [2003-10-12 22:34:46] hedrick at rutgers dot edu Description: ------------ We have two LDAP servers, a primary and a backup. PHP scripts can't use the backup in any useful way. If the primary is down, the timeout is 180 sec. The user will have given up long before then. Openldap has an option LDAP_OPT_NETWORK_TIMEOUT that applies to the connect. You need to add this to the list of options that can be set with ldap_set_option. Sun (which I assume means Netscape) has an equivalent, LDAP_X_OPT_CONNECT_TIMEOUT. However I think people build with openldap often enough that even supporting just the openldap version would be a big help. Another approach would be to allow arbitrary values for ldap_set_option, so you don't have to hard-code all possible value. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25847&edit=1