[SUCS Devel] [Git][sucssite/sucs-site][sucs-site] shitty iss dropped uid for EDUPERSONTARGETEDID
Imran Hussain
imranh at sucs.org
Tue Sep 26 11:50:14 BST 2017
Imran Hussain pushed to branch sucs-site at sucssite / sucs-site
Commits:
653b406c by Imran Hussain at 2017-09-26T11:50:09+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/653b406c7f439b2e8cd4a4f02b4810e6610fe160
---
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/653b406c7f439b2e8cd4a4f02b4810e6610fe160
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/a49f26a3/attachment.html>
More information about the Devel
mailing list