Active Directory Series

🏢 The Top 1% Hands-On for Deploying a Branch-Office RODC (Read-Only Domain Controller)

Introduction

This article is part of the Top 1% Series Complete Article Guide, the 38th article in the Active Directory Series.

Prerequisites

Why an RODC Is Needed in the First Place

A normal DC holds a full, writable copy of the entire AD DS database. That’s not a problem in an environment like a data center, where physical access is tightly controlled. But it’s not unusual at all for a branch office or a factory floor to lack a lockable server room, with anyone able to walk up to the server rack. If a normal DC is placed at a location like this and stolen, the stolen disk contains a full copy of AD DS — including the password hashes of every user in the entire forest. An RODC is a special kind of DC, designed specifically to absorb this physical risk.

The Big Picture

This hands-on consists of three steps.

graph LR
    Step1["Step1<br/>Promote it as an RODC"]
    Step2["Step2<br/>Configure the Password<br/>Replication Policy"]
    Step3["Step3<br/>Confirm the caching<br/>behavior firsthand"]
    Step1 --> Step2 --> Step3

Hands-On Steps

Step 1: Promote it as an RODC

Promote a new server as an RODC, instead of a normal DC.

Install-ADDSDomainController -DomainName "example.com" -ReadOnlyReplica -SiteName "BranchOffice" -InstallDns

The -ReadOnlyReplica option is the single, decisive difference from a normal DC promotion. Once promotion completes, this RODC holds a read-only copy of the AD DS database.

Step 2: Configure the Password Replication Policy

Right after an RODC is promoted, it caches no user’s password at all, by default. This means every time a user at the branch logs in, the RODC forwards that authentication to a writable DC — at headquarters, say — every single time. That would leave branch users unable to log in whenever the WAN link drops, so you configure explicit permission, scoped to just the branch’s own users.

$rodc = Get-ADDomainController -Identity "RODC-Branch01"
Add-ADDomainControllerPasswordReplicationPolicy -Identity $rodc -AllowedList "BranchOfficeUsers"

The single most important point here is that the default is “deny everything,” made explicitly opt-in. Only users belonging to the BranchOfficeUsers group are permitted to have their passwords cached on this RODC. Any other user — headquarters executives’ accounts, say — will never have their password cached on this RODC, even if they log in at this branch.

Step 3: Confirm the caching behavior firsthand

Log in from this branch as a user belonging to BranchOfficeUsers. After the first login, confirm the password was actually cached with this command.

Get-ADDomainControllerPasswordReplicationPolicyUsage -Identity "RODC-Branch01" -Cached

Next, try logging in the same way as a different user who isn’t included in BranchOfficeUsers. The login itself succeeds (since the RODC forwards authentication to a writable DC), but running the same command as before confirms this user’s password was never cached.

What a Pro Sees Here (Top 1% Understanding)

If an RODC is stolen, what’s actually at risk is “only the passwords that were cached”

Consider the response procedure if an RODC is ever physically stolen. The administrator checks the list of “passwords that were cached on this RODC,” which appears when deleting that RODC’s object from dsa.msc, and resets, in bulk, only the passwords for the accounts on that list. Had this been the theft of a normal DC instead, a far larger response would have been required — resetting the password of every single account in the forest. The Password Replication Policy’s design of limiting the blast radius to just that branch’s users is the single biggest value an RODC provides.

An RODC’s other face: Administrator Role Separation

An RODC has one more important feature beyond controlling password caching: Administrator Role Separation. It’s a common scenario to want to permit a branch’s IT staffer to do local admin work on that RODC — rebooting it, applying patches — without handing them Domain Admins rights that affect the entire forest. An RODC lets you designate an ordinary AD DS user as the local administrator for just that one RODC. This user can administer that RODC at the OS level, but has no rights over AD DS’s data itself, at all. This is another concrete instance of the principle of least privilege, covered in The Top 1% Hands-On for Delegating OU Control to the Help Desk.

Common Misconceptions and Pitfalls

Troubleshooting Perspective

  1. Branch users can’t log in when the WAN link drops: Check whether that user is on the Password Replication Policy’s allowed list, and whether their password was already cached from a prior login.
  2. A user you expected to be cached isn’t: Check whether the correct group or user was actually specified as the target of Add-ADDomainControllerPasswordReplicationPolicy.
  3. The RODC promotion itself fails: Check whether the forest functional level requirement is met, and whether at least one writable Windows Server 2008-or-later DC exists in the forest.

Summary

Takeaways to Apply Today

  1. Whenever you need to place a DC somewhere physical security can’t be guaranteed, consider whether an RODC solves it.
  2. Keep the Password Replication Policy’s allowed list scoped to only the users and groups that genuinely need it.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).