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