View Full Version : PHP / Active Directory Integration

12-09-2008, 01:23 PM
Hey all,

I would appreciate some guidance on PHP AD integration, I am having troubles binding a user to the directory.

So far I have...

Recompiled PHP with LDAP.
Opened ports 389 and 636 on our router to allow LDAP connections in.

It is the next part I have issue with (or perhaps there is more I need to do in preparation? the active directory in question is just a normal Windows Active Directory sitting on a windows machine)

Say our domain (that we log into internally) is xy.com and the computer that has our active directory is named "a" internally. Then am I right in thinking I should be connecting to ldap://a.xy.com

ldap_connect() for that doesn't throw an error (however I didn't when I left off ldap://a. either)

Then I take user credentials that I know AD knows (mine for example) so say user@xy.com and run ldap_bind(), this is when I get the error.

Any help would be greatly appreciated.

12-09-2008, 05:50 PM
I have now tried to bind without credentials (just to see if they were causing the problem) and getting the same problem.