The following example returns organizational units (OUs) that are part of the
object class group
in Colorado with the exception of OUs in
Denver.
(&(objectClass=group)(&(ou:dn:=Colorado)(!(ou:dn:=Denver))))
The following example returns all users that aren't
device
.
(&(objectClass=user)(!(objectClass=device)))