Commit 653b406c authored by Imran Hussain's avatar Imran Hussain
Browse files

shitty iss dropped uid for EDUPERSONTARGETEDID

parent b02c75c6
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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]));