hello,
I'm trying to connect with Active Directory. But the bind won't work. I really don't know why
this is the code:
$password='password';
$username='Administrator';
$ldapserver = 'pc07.zeeland.epc.local';
$ds=ldap_connect($ldapserver);
if ($ds) {
$dn="cn=$username,cn=Users, DC=ZEELAND.EPC, DC=LOCAL";
$r=@ldap_bind($ds,$dn,$password);
if ($r) {
echo 'right';
}
else {
echo 'wrong';
}
}