Page 1 of 1

Active Directory and PHP?

Posted: Tue Dec 17, 2002 2:55 am
by Kevey
Hi there,
I'm not sure if this is possible, but seeing how I'm no expert in PHP I'll ask anyway:

I'm in the process (thinking about it) of writing an application which will hold a staff database of where I work. I initially thought each staff member would be added manaully.. each person is added as they join/are required.

But.. would it be possible to query an Active Directory enabled server or a MS Exchange server to get the list of staff? Can PHP talk to either of these services to get information?
Was thinking possibly an LDAP function to communicate with AD; but not too sure.

Any suggestions?

Thanks, sorry for being so high level!!

Posted: Tue Dec 17, 2002 10:08 am
by BDKR
Good question. One I don't know the answer too myself. Did you check to see if AD provides a way of providing information to outside services? This is the tack I'd take. If it does, then there is probably no reason why you couldn't write something to communicate with it.

Cheers,
BDRK

Posted: Tue Dec 17, 2002 11:00 am
by kcomer
Look at the user notes on this page. Has some good info to get you started.
http://www.php.net/manual/en/ref.ldap.php