.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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -