I just wonder if anyone knows or made a wrapper around Active Directory to be able to easily query it in .net? Kind of like ‘LINQ-to-ActiveDirectory’ or some SQL Dialect, i.e. to be able to do ‘SELECT DISTINCT(DEPARTMENT) FROM /Users/SomeOU/AnotherOU’ or ‘SELECT user FROM domain’ or whatever.
As far as I know, it is possible to query WMI and IIS in a ‘SQLesque’ way, i just wonder if something similar is possible for Active Directory as well, without having to learn yet another Query Language (LDAP)?
http://www.codeplex.com/LINQtoAD
Sample (from the site):