N
Net Coder
I'm trying to bind to DC by site. The environment is a AD 2K3 domain with
multiple sites.
For example, when my application is started, it checks for the site of the
computer where the application is running. Then, it looks for a DC in the
site and then all DirectorySearcher and DIrectoryEntry operations will use a
binding string aimed at that DC on the site.
If the DC is not available, then a default server, the PDC emulator is used.
How would I code in VB .Net the following:
1) Determine which site the current PC running my application is in.
2) Determine which domain controllers are in the site.
3) Bind directly to the domain controller on the site using
DirectoryServices.DirectoryEntry or DirectoryServices.DirectorySearcher
It's just that I don't trust the automatic DC selection when performing
directory operations.
multiple sites.
For example, when my application is started, it checks for the site of the
computer where the application is running. Then, it looks for a DC in the
site and then all DirectorySearcher and DIrectoryEntry operations will use a
binding string aimed at that DC on the site.
If the DC is not available, then a default server, the PDC emulator is used.
How would I code in VB .Net the following:
1) Determine which site the current PC running my application is in.
2) Determine which domain controllers are in the site.
3) Bind directly to the domain controller on the site using
DirectoryServices.DirectoryEntry or DirectoryServices.DirectorySearcher
It's just that I don't trust the automatic DC selection when performing
directory operations.