Try this and see if it works. I had the same problem until I did a little
reading. I had to use [EMAIL PROTECTED] as username then I didn't get
the credential errors anymore.
hope this helps, its very basic but hopefully it gets you started.
* Config.php**
?php
hi vince,
Vince C wrote:
?php
$ldaphost= company.com;
if(!($ldap = ldap_connect($ldaphost,389))){
die(ldap server cannot be reached);
} else {
$oudc = dc=company, dc=com;
$dn2 = ;
$password = ;
did you define your user and password? afaik win ad isn't searchable by
anonymous.
ciao
Hi Sven,
I have tried to put the my login username in that place. But it showed
Invalid Credental. Since I am new to this AD and LDAP, would it be the
format of my username? Should I just put my login username, or should I put
the whole bunch of line such as CN=my name, DN= something like