OK, LDAP evangelists,

I need to query our customer-facing AD for a list of all the users who
share a particular attribute. Let's call that attribute "Attribute1."

So, if two people have the same value in Attribute1, I need their DN.

The trick is, that I want the results for all possible values of Attribute1.

In SQL, I would use group by Attribute1 having count(Attribute1) >1 to
get a list of all Attribute1 values where more than one object had the
same value. I would then join that back to the table to get a list of
all the DN's with those values of Attribute1.

Is there a way to do this with an LDAP query.

Please note that the directory contains millions of objects and
iterating through them will be painful.


-Jeremy
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to