[PHP] Re: Connect Active Directory using LDAP... please help :)

2003-07-07 Thread The.Rock
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] Re: Connect Active Directory using LDAP... please help :)

2003-07-03 Thread Vince C
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

[PHP] Re: Connect Active Directory using LDAP... please help :)

2003-07-03 Thread sven
hi vince, Vince C wrote: > $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 anon