I have code that crawls users/groups, etc starting with the GC using .Net
DirectoryServices.
Everything works great, but I'm trying to provide an include/exclude list
of
domains in the LDAP filter.
For example, the base DN/root domain is DC=topdomain,DC=com
I have 1 sub domain that I'm just trying to filter out first, to get a
handle on the LDAP filter syntax, called subdomain1
so my filter is basically this
(&(objectCategory=person)(!dc:dn:=subdomain1))
I've also tried:
(&(objectCategory=person)(!(dc:dn:=subdomain1)))
Anyone have any pointers?