Computer authenticating with incorrect DC...sort of

8,862

This is actually more common than you may think. Check the following to see if it helps:

How to force machines in an AD site to authenticate against a GC in their own site

Share:
8,862

Related videos on Youtube

Admin
Author by

Admin

Updated on September 17, 2022

Comments

  • Admin
    Admin almost 2 years

    I have a login script that uses the LOGONSERVER environment variable. I have several remote offices. There is one file server/DC in each office and each office is their own site. So when a user logs in to an office they should authenticate with that domain controller.

    The problem I have been seeing is that some computers in an office (not all) will authenticate with a random DC from another office some days, but some days it will be fine. So for example, a guy logs in to office 16, he should authenticate with SERVER16, however he authenticated with SERVER13. When I checked event viewer on his computer, I can see that the time synchronized with the correct server (SERVER16) however his drives mapped to SERVER13 and when running set from a command prompt it shows his LOGONSERVER as SERVER13.

    So how can a computer sync time with the proper DC for it's site, but still authenticate with a server in a different site? I have checked AD Sites and Services and DNS. Each site only has one DC, the correct one, and the DNS site records for each site are correct. By all logic there is no reason why this should happen, unless I'm missing something. Also, we are running mixed 2003/2008 Windows environment and it doesn't matter what the platform of the server is.

  • ASalazar
    ASalazar over 14 years
    The last guy who managed AD set this up, but no one really knows why. I have site links setup from my central site to each remote site with a cost of 100. Then I also have a site link that has all other sites in it with a cost of 10. So would this mean all sites can talk to each other with a cost of 10? Essentially allowing a computer to authenticate with any DC they want if their local is unavailable. Is this a good way to go, or a bad way. As I said, no one knows why this is setup, but by all logic it makes sense that this could be the cause. Have you ever heard of this configuration?
  • Greg Askew
    Greg Askew over 14 years
    Sorry for the late reply. I'm not sure. I know that between any two points, AD prefers a link with a lower cost. What this means in your topology, I don't know. Why someone would manually create these two links...? We usually stick with automatic site links, there is no way we could manage a strategy of individual one-offs based on certain criteria. You may try adjusting the RegisterDNSARecords so that a remote site would prefer the central DC if the local DC is unavailable. You may want to perform packet captures before and after any changes to confirm the results of your changes.