[SUCS Devel] [Git][sucssite/sucs-site][sucs-site] Update sucs iss ldap info for signup system
Imran Hussain
imranh at sucs.org
Tue Sep 26 11:39:26 BST 2017
Imran Hussain pushed to branch sucs-site at sucssite / sucs-site
Commits:
b02c75c6 by Imran Hussain at 2017-09-26T11:38:53+01:00
Update sucs iss ldap info for signup system
- - - - -
1 changed file:
- lib/validationData.php
Changes:
=====================================
lib/validationData.php
=====================================
--- a/lib/validationData.php
+++ b/lib/validationData.php
@@ -2,14 +2,12 @@
// lookup real names from sid's using campus ldap
function lookupSID($sid)
{
- $ds = ldap_connect("ccs-suld1.swan.ac.uk");
- $ldappw = file_get_contents("/etc/unildap.secret");
- $ldappw = trim($ldappw);
- ldap_bind($ds, "cn=SUCS-BIND,ou=ServiceAccount,o=SWANUNI", $ldappw);
- $sr = ldap_search($ds, "ou=students,ou=Swansea,o=swanuni", "uid=" . $sid);
+ $ds = ldap_connect("192.168.10.16");
+ ldap_bind($ds);
+ $sr = ldap_search($ds, "ou=Active,ou=Resources,o=Swansea", "uid=" . $sid);
$info = ldap_get_entries($ds, $sr);
ldap_unbind($ds);
- return ucwords(strtolower($info[0]['givenname'][0] . " " . $info[0]['sn'][0]));
+ return ucwords(strtolower($info[0]['givenName'][0] . " " . $info[0]['sn'][0]));
}
// lookup addresses from postcodes using the university's website
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/b02c75c60099fcd6cefc78c6e75607a85922fae0
---
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/b02c75c60099fcd6cefc78c6e75607a85922fae0
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/adffe9da/attachment.html>
More information about the Devel
mailing list