note 117968 added to function.ldap-bind
| From: | user_o at hbt dot com | Date: | Thu, 10 Sep 2015 03:31:35 +0000 |
| Subject: | note 117968 added to function.ldap-bind | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203762@lists.php.net to get a copy of this message | ||
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
----
Server IP: 72.52.91.14
Probable Submitter: 61.219.202.66
----
Manual Page -- http://php.net/manual/en/function.ldap-bind.php
Edit -- https://master.php.net/note/edit/117968
Del: integrated -- https://master.php.net/note/delete/117968/integrated
Del: useless -- https://master.php.net/note/delete/117968/useless
Del: bad code -- https://master.php.net/note/delete/117968/bad+code
Del: spam -- https://master.php.net/note/delete/117968/spam
Del: non-english -- https://master.php.net/note/delete/117968/non-english
Del: in docs -- https://master.php.net/note/delete/117968/in+docs
Del: other reasons-- https://master.php.net/note/delete/117968
Reject -- https://master.php.net/note/reject/117968
Search -- https://master.php.net/manage/user-notes.php