.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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -