[SUCS Devel] [Git][sucssite/sucs-site][master] shitty iss dropped uid for EDUPERSONTARGETEDID
Imran Hussain
imranh at sucs.org
Tue Sep 26 11:49:56 BST 2017
Imran Hussain pushed to branch master at sucssite / sucs-site
Commits:
52510509 by Imran Hussain at 2017-09-26T11:49:54+01:00
shitty iss dropped uid for EDUPERSONTARGETEDID
- - - - -
1 changed file:
- lib/validationData.php
Changes:
=====================================
lib/validationData.php
=====================================
--- a/lib/validationData.php
+++ b/lib/validationData.php
@@ -4,7 +4,7 @@ function lookupSID($sid)
{
$ds = ldap_connect("192.168.10.16");
ldap_bind($ds);
- $sr = ldap_search($ds, "ou=Active,ou=Resources,o=Swansea", "uid=" . $sid);
+ $sr = ldap_search($ds, "ou=Active,ou=Resources,o=Swansea", "EDUPERSONTARGETEDID=" . $sid);
$info = ldap_get_entries($ds, $sr);
ldap_unbind($ds);
return ucwords(strtolower($info[0]['givenName'][0] . " " . $info[0]['sn'][0]));
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/52510509648083629f5de76d44d017b0a38695b3
---
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/52510509648083629f5de76d44d017b0a38695b3
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/20170926/1f5288ea/attachment-0001.html>
More information about the Devel
mailing list