I'm just wondering if anyone knows or does a wrapper around Active Directory so that I can easily query for it in .net? For example, "LINQ-to-ActiveDirectory" or some SQL dialect, i.e. Have the ability to "SELECT DISTINCT (DEPARTMENT) FROM / Users / SomeOU / AnotherOU" or "SELECT user FROM domain" or something else.
As far as I know, you can query WMI and IIS using "SQLesque", I just wonder if something like this is possible for Active Directory without learning yet another query language (LDAP)?
Michael stum
source share