Active Directory and PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Kevey
Forum Newbie
Posts: 2
Joined: Tue Dec 17, 2002 2:55 am
Location: New Zealand

Active Directory and PHP?

Post 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!!
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post 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
kcomer
Forum Contributor
Posts: 108
Joined: Tue Aug 27, 2002 8:50 am

Post 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
Post Reply