note 117968 deleted from function.ldap-bind by cmb
| From: | cmb@php.net | Date: | Sun, 17 Nov 2019 09:09:12 +0000 |
| Subject: | note 117968 deleted from function.ldap-bind by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213124@lists.php.net to get a copy of this message | ||
Note Submitter: user_o at hbt dot com
----
Set timeout for ldap_bind:
<?php
$ld = ldap_connect("ldap.example.com");
ldap_set_option($ld, LDAP_OPT_NETWORK_TIMEOUT, 10);
/* 10 second timeout */
ldap_bind($ld);
?>
ref. https://bugs.php.net/bug.php?id=42837