Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple question

Status
Not open for further replies.

Jeppedal

Technical User
Aug 13, 2002
58
NO
Hi,

I'm totally new with the concept of LDAP, and need some help with a simple query.

What I actually need to to is to sample the total number of users defined in Windows 2000 Active Directory on a regular basis.

For this I have an application that can do simple LDAP queries, and return the number of records found.

In the application I can define a base DN, where I have entered "OU=Users,DC=MyDomain,DC=com"

I can also define a pattern, where I have entered "CN=*"

The application returns a value of 96 on my testsite, wich is the actual number of defined users and groups beneath Users. Does anyone know if there is something I can use as an attribute in the pattern to just get the number of users, without the groups?

In the Active Directory Management Console I have a Type field containing the values "User" and "Security Group".

Thanks in advance.

Best regards
Jeppedal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top