VMware Cloud Community
orian
Hot Shot
Hot Shot

Query users by attribute

Hi,

How can I query from AD all users which have email address and print their names?

I try to use this command, but it returns "size limit exceeded"

ldapClientObj.searchForEntry(LDAP_DN, LdapSearchScope.SUB, 0, "(&(objectClass=user)(mail=*))", ATTRIBS);

I use ldap query because when using ActiveDirectory.searchRecursilvly it returns more than 1000 users.

If I use ldap query according to specific attribute it will return around 300 users.

Thanks!

Reply
0 Kudos
1 Reply
orian
Hot Shot
Hot Shot

any idaes?

Reply
0 Kudos