ok i get another parse error
Parse error: parse error, unexpected ';' in C:\Program Files\Apache Group\Apache2\htdocs\ldapstuff\connect1.php on line 48
line 48
print_r($ldap["info"];
however if i comment it out, no errors.
Now beciase i just wanna check username and password in the ldap directory
i think i need to change these lines right
$SESSION["userdept"] = $ldap["info"][0]["department"][0];
$SESSION["usermail"] = $ldap["info"][0]["mail"][0];
maybe to
$SESSION["uname"] = $ldap["info"][0]["uname"][0];
$SESSION["password"] = $ldap["info"][0]["password"][0];
now im not 100% sure about this becuase the attribute fields in the ldap server are called uid userPassword. So maybe they should be in there, is that right