[Step By Step] Configuring credential caching on an RODC in Windows Server 2008 R2

Hello friends! This time I bring you an article on how to configure credential caching on an RODC in Windows Server 2008 R2. I hope you find it useful! Objective The objective of this tutorial is to detail the steps and requirements needed

AI-assisted translation, approved by Mateo.

Hello friends! This time I bring you an article on how to configure credential caching on an RODC in Windows Server 2008 R2. I hope you find it useful!

Objective

The objective of this tutorial is to detail the steps and requirements needed to allow credential caching on a Read Only Domain Controller.

Scope

The scope of this tutorial is to detail the steps and requirements needed to allow credential caching on a Read Only Domain Controller in Windows Server 2008 R2 in a single-forest/single-domain environment.

Introduction

In Active Directory Domain Services, RODCs have a read-only database that has one-way replication with writable domain controllers; that is, changes cannot be made from an RODC. This read-only database stores ALL Domain/forest objects except the passwords of users, computers, or service accounts, which does not allow users to authenticate through an RODC; it must redirect the query to a Full DC. To allow users to authenticate through the RODC without needing to go through a Writable Domain Controller, the password must be cached by configuring the Password Replication Policy (PRP). This tutorial details how to carry out this process.

Scenario

  • DCs
    • PDC01 (Writable DC)
    • PDC03 (RODC)
    • Desktops
      • W701-PC
      • Test users
        • Prueba1
        • Prueba

Procedure to carry out

For a user to be able to log on to an RODC (without requiring a writable Domain Controller to be available), the following series of steps must be carried out:
  • Client computer network adapter configuration
  • Adding the user and computer account to the Allowed RODC Password Replication Group
  • Password pre-population.
Client computer network adapter configuration The network adapter must be configured on the client computer: the site's RODC must be set as the primary DNS server. Adding the user and computer account to the “Allowed RODC Password Replication Group” The computer and user whose passwords are to be cached must be added to the Allowed RODC Password Replication Group. Password pre-population The passwords of the computer and user previously added to the Allowed RODC Password Replication Group must be pre-populated.

Credential caching tests

Based on the detailed procedure to carry out, 2 tests are generated to verify the operation of credential caching. To execute these tests, the user Prueba1@madent.local was created, and a client computer named W701-PC was prepared where this user has not authenticated. Picture1

Test 1

  • The user Prueba1 and the W701-PC computer are added to the “Allowed RODC Password Replication Group”. This operation is carried out on a Writable Domain Controller.
Picture2
  • At the command line, the repadmin /syncall command is run
  • The writable domain controller is shut down.
  • The W701-PC computer is turned on
  • An attempt is made to log on with the Prueba1 user on the W701-PC computer
  • The following error is displayed.
Picture3 This error is due to the user and computer account passwords not being cached on the RODC. To cache the credentials and authenticate on the RODC without a writable DC being present at the site, the procedure detailed in Test 2 must be followed.

Test 2

  • The user Prueba1 and the W701-PC computer are added to the “Allowed RODC Password Replication Group”. This operation is carried out on a Writable Domain Controller.
Picture4
  • The password of the W701-PC computer account and the Prueba and Prueba1 accounts is pre-populated.
    • We open the RODC properties
    • Go to Password Replicaction Policy. Click Advanced.
    • Click “Prepopulate Passwords…”
    Picture5
  • A text box will open where we must add the W701-PC computer
Picture6
  • The wizard asks whether we want to send the passwords to the RODC
Picture7
  • The pre-population is completed.
Picture8
  • We carry out the same steps for the Prueba and Prueba1 accounts. Then we perform the pre-population (remember that the Prueba account was not added to the “Allowed RODC Password Replication Group” security group)
Picture9
  • An error is found while pre-populating the password for the Prueba account because it has not been added to the “Allowed RODC Password Replication Group”.
Picture10
  • The writable domain controller is shut down.
  • The W701-PC computer is turned on
  • An attempt is made to authenticate with the Prueba1 user on the W701-PC computer
Picture11
  • The test is verified as successful.
Picture12 Picture13
  • The logonserver is verified as PDC03 (RODC)
Picture14

Sources

http://technet.microsoft.com/en-us/library/cc772234(v=ws.10).aspx http://technet.microsoft.com/en-us/library/cc753459(WS.10).aspx http://technet.microsoft.com/en-us/library/cc730883(v=ws.10).aspx http://technet.microsoft.com/en-us/library/cc755310(v=ws.10).aspx

Thanks for reading. The learning continues in the next article.