Bind to a specific server using LDAP (VB.NET 2003)
Posted on 2004-10-27
I am currently using LDAP to bind to active directory, however, the command process I am calling (TSCMD) to modify AD users requires a servername to bind to, instead of just a domain name. Every once in a while, my program will bind to DC2 instead of DC1, and then when I go to set the properties of the user on DC1 with TSCMD, the account has not yet replicated to DC1 because it was created on DC2. Is there a way to bind to a specific server in AD using LDAP so that I can always guarantee that the accounts will be created on the same server as TSCMD references?