LDAP Searching

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
danf01
Forum Newbie
Posts: 1
Joined: Thu May 18, 2006 2:03 am

LDAP Searching

Post by danf01 »

Hi all,

I was wondering if there was a way to search a Windows 2k3 Active Directory using LDAP, and for it only to return OU's.

Thanks, Dan.
Ree
Forum Regular
Posts: 592
Joined: Fri Jun 10, 2005 1:43 am
Location: LT

Post by Ree »

User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Maybe if you set the filter to be something like:

Code: Select all

(&(objectClass='ou'))
Using Novell Directory Services wording here, you'll need to change it of course.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply