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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -