Question Locked

Using PHP and LDAP to connect to AD

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi there,

apologies for any mistakes as this is my first post.

I am trying to retrieve the PO box in the address information from a user in Active Directory using some kind of php coding. I have found various examples but cannot find a simple step by step guide as I am a novice in this area. I currently have an AD on server 2008 with a web page on a web server(also 2008, running IIS) that is coded in php and I need to retrive the PO box from an active directory entry for a user. Is this possible.

Thanks in advance

3 replies

by k.grey

Hi,

The link was useful. However when using the ldap functions I have some strange responses.

I have been using this code:

When i use the ldap connect function and load the webpage there are no errors, however when i add the bind function it states that the user is invalid even though it isnt. Stranger still, when i close the webpage and then reopen it with the above code in i get a server error HTTP 500, rather than the invalid credentials error???

I have not prepped my AD in anyway to recieve ldap connections, will i need to change a setting somewhere??

Thank you for your quick response

This discussion is closed to new replies.