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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -