Add a read-only domain controller
The optional rodc service joins the domain as a Read-Only Domain Controller:
a second DC holding a read-only replica of the directory. It refers writes to the
primary and, by default, caches no credentials except those a Password
Replication Policy permits. It exists so you can test how an application behaves
against an RODC, which is a genuinely different set of edge cases.
Bring it up and verify
Section titled “Bring it up and verify”The RODC starts with the rest of the stack:
make upmake rodc-logs # watch the join and directory replicationmake rodc-status # RODC health + the primary's replication links to rodc1make rodc-test # read from the RODC, then watch a write get referredmake rodc-test is the proof it is read-only: a user-list read is served
straight from the RODC’s replica, then a user create against the RODC returns
LDAP_REFERRAL pointing at ldap://dc1..., the RODC handing the write upstream.
Point a client at it
Section titled “Point a client at it”A test client that uses the RODC (10.22.22.24 by default) for DNS and LDAP reads
locally and, for anything it cannot satisfy (writes, uncached credentials),
transparently chains to the writable dc1. That chaining is the behaviour worth
testing against.
Known rough edges
Section titled “Known rough edges”Samba’s RODC support is less mature than its read-write replication. Two harmless quirks show up:
samba-tool drs showreplrun on the RODC returnsWERR_DS_DRA_ACCESS_DENIED. It is cosmetic; the primary’s view (viamake rodc-status) confirms replication is healthy.- Two
_gc(Global Catalog) SRV records do not auto-register, because this RODC is not acting as a Global Catalog. The DC-locator records that matter do register. A cold boot’s firstsamba_dnsupdatecan logexit code 4; the periodic retry heals it once the Kerberos path todc1settles.