Quote:

Strictly speaking it's not possible as any function would need to enumerate ALL the groups first to make sure what the name is. You don't have to return the data of all of them though.




It is possible to perform this quickly and efficiently using an LDAP query (if he is looking for all the groups with 'admin' in the name from a domain).

The filter for fnLDAPQuery() would look like...

Code:
$sFilter = "(&(objectClass=group)(name=*admin*))"