[SUCS Devel] [Git][sucssite/sucs-site][master] LDAP timeout when doing lookupSID()
Imran Hussain (@imranh)
gitlab at projects.sucs.org
Wed Sep 27 11:38:55 BST 2023
Imran Hussain pushed to branch master at sucssite / sucs-site
Commits:
14b11768 by Imran Hussain at 2023-09-27T10:38:48+00:00
LDAP timeout when doing lookupSID()
- - - - -
1 changed file:
- lib/validationData.php
Changes:
=====================================
lib/validationData.php
=====================================
@@ -3,6 +3,7 @@
function lookupSID($sid)
{
$ds = ldap_connect("192.168.10.16");
+ ldap_set_option($ds, LDAP_OPT_NETWORK_TIMEOUT, 10); /* 10 second timeout */
ldap_bind($ds);
$sr = ldap_search($ds, "ou=Active,ou=Resources,o=Swansea", "EDUPERSONTARGETEDID=" . $sid);
$info = ldap_get_entries($ds, $sr);
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/-/commit/14b11768135fbbf0c4907a19f4b34edcdd7f361f
--
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/-/commit/14b11768135fbbf0c4907a19f4b34edcdd7f361f
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20230927/9824bd31/attachment-0001.html>
More information about the Devel
mailing list