JSI Tip 9972. How can a query using the LDAP provider be directed to a specific domain controller?

In tip 9690, we returned user properties using the LDAP provider.

If I wanted to return my user properties, using any domain controller, I could run:

cscript //nologo c:\util\UserAttr.vbs "CN=Jerold Schulman,CN=Users,DC=JSIINC,DC=COM"

If I wanted to only connect to the JSI001 domain controller, I could run:

cscript //nologo c:\util\UserAttr.vbs "JSI001\CN=Jerold Schulman,CN=Users,DC=JSIINC,DC=COM"

which issues the following command:

Set objUser = GetObject("LDAP://JSI001/CN=Jerold Schulman,CN=Users,DC=JSIINC,DC=COM")



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish