Single LDAP query across forests


hello

we have 2 forests (trusted) single domains.

from third-party tool need query users in both domains/forests.

using chase referrals , vbs (found in forum) can create script query remote domain
example:
<a href="ldap://dom1.aaa.com/dc=dom2,dc=aaa,dc=com>;(&(objectclass=user)(userprincipalname=*test">ldap://dom1.aaa.com/dc=dom2,dc=aaa,dc=com>;(&(objectclass=user)(userprincipalname=*test*))

by changing ldap server reference, can query users in 1 or other domain, not @ same time.

any suggestion on how solve single string cannot changed everytime (if possible @ all)?

thanks
leandro

please use netdom query domain information such membership , trust.

netdom query

http://technet.microsoft.com/en-us/library/cc835089.aspx


please remember click “mark answer” on post helps you, , click “unmark answer” if marked post not answer question. can beneficial other community members reading thread.



Windows Server  >  Directory Services



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...