Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2008
    Location
    Northern Ireland
    Posts
    167
    Thanks
    12
    Thanked 6 Times in 6 Posts

    PHP / Active Directory Integration

    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.

  • #2
    Regular Coder
    Join Date
    Aug 2008
    Location
    Northern Ireland
    Posts
    167
    Thanks
    12
    Thanked 6 Times in 6 Posts
    I have now tried to bind without credentials (just to see if they were causing the problem) and getting the same problem.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •