.net - Search active directory for groups like a SQL LIKE statement -


is possible search active directory group this: - give me groups contain name sample?

in sql write

select * group name %sample% 

i found on msdn hints expressions =, <= not like. http://msdn.microsoft.com/en-us/library/system.directoryservices.directorysearcher.filter.aspx

thanks hints.

if looking search name of group, link @ bottom of page linked tells not take directly page

for more information ldap search string format, see "search filter syntax" (i added correct link)

use query (&(objectclass=group)(cn=*sample*)) looking for.

if searching if user member of group, not list of groups match pattern, need use memberof , wildcards not work on memberof search


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -