[HELP] Active Directory session from 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
jetze
Forum Newbie
Posts: 6
Joined: Wed Apr 14, 2004 3:29 am

[HELP] Active Directory session from PHP

Post by jetze »

Hi all,

Is there any way to get the Windows 2000 Server Active Directory session from PHP??

Actually, I don't understand how the Active Directory works. Where are all the information about an opened session stocked??

Hoping your suggestions....thanks....
dave420
Forum Contributor
Posts: 106
Joined: Tue Feb 17, 2004 8:03 am

Post by dave420 »

Look in the manual under LDAP. You can connect to your AD server using that. LDAP is pretty good at giving you general information about your network, but lacks on up-to-the-second user info, such as who's logged on to what machine, or which computers are actually turned on. Youi can use the PSTools suite from sysinternals (for free) in your PHP (as well as the "net view" command) to find out which users are on which machines. It's not perfect, but very very powerful.
Post Reply