java - Active directory search filter for users from specific domain -
i have ad setup follows:
domain.local -> global catalog
child.domain.local -> domain controller
i'm trying write query global catalog server search users specific domain have text. domain should variable query.
i tried search filter search users domain.local start "c":
(&(samaccounttype=805306368)(&(mail=*)(givenname=*)(sn=*))(objectcategory=cn=person,cn=schema,cn=configuration,dc=domain,dc=local)(|(anr=c)(mail=c*)))
but finds users both domains.
i tried 1 too:
(&(samaccounttype=805306368)(&(mail=*)(givenname=*)(sn=*))(dc=domain,dc=local)(|(anr=c)(mail=c*)))
but doesn't find anything.
what missing?
Comments
Post a Comment