Docs / Scenarios / Local administrator passwords with Windows LAPS

PDF286 KB

Local administrator passwords with Windows LAPS

On this page

Goal: every RHEL workstation has a unique, rotating local administrator password stored in AD, read with the same tools as for Windows.

You need: the LAPS schema extension and the computers' permission (once per domain and OU, see Step 1 of the Windows guide), a KDS root key for encrypted passwords, GPWarden on the workstations.

1. Choose the account

Leave the account name empty to manage root, or ask the Linux team to create a dedicated local account on each workstation (recommended; for example lapsadmin in the wheel group). As with Windows LAPS, the account is not created by policy.

2. Configure LAPS in a GPO

Computer Configuration > Policies > Administrative Templates > System > LAPS, in a GPO linked to the Linux OU:

  • Configure password backup directory: Active Directory
  • Name of administrator account to manage: lapsadmin (or empty for root)
  • Enable password encryption: Enabled (the default), Configure authorized password decryptors: the group that may read passwords
  • Password Settings: complexity (1–8, including passphrases), length, age
  • Post-authentication actions: grace period and action (reset the password; reset and sign out; reset and restart)

These are the same settings as for Windows 11, and the same GPO can serve both.

3. Read a password

PowerShell
Get-LapsADPassword -Identity WS042 -AsPlainText

Or the LAPS tab of the computer in Active Directory Users and Computers.

The LAPS tab of the RHEL computer EL10 in Active Directory Users and Computers: account root, expiry, password hidden

4. Rotate a password now

PowerShell
Set-LapsADPasswordExpirationTime -Identity WS042

The workstation rotates at its next hourly LAPS check, or at once after gpwardenctl update on it. (Reset-LapsPassword runs on the managed computer itself, so it applies to Windows only.)

What happens on the workstation

  • The password is set on the local account and written to AD; it is never stored on the workstation. Rotation follows the password age; history is kept in AD when encryption is on, as on Windows.
  • Post-authentication actions start when someone signs in to the managed account with its password (console, login screen, su, SSH with a password). SSH keys and sudo do not use that password and do not start the grace period. Signing out ends every interactive session of that account, so keep automation off it.
  • Event 10018 ("password rotated and stored in AD") is in the journal, as in Windows' LAPS log.

FIPS-mode workstations

Encrypted LAPS needs an ECDH KDS root key on FIPS-mode RHEL; the default key type is refused there. Create one once (it also serves Windows and gMSAs):

PowerShell
Set-KdsConfiguration -SecretAgreementAlgorithm ECDH_P384 -SecretAgreementPublicKeyLength 384 `
    -SecretAgreementPrivateKeyLength 384 -SecretAgreementParameters $null
Add-KdsRootKey -EffectiveImmediately      # usable after 10 hours

If it does not work

gpwardenctl result on the workstation shows the LAPS state (managed account, encryption, last rotation). Common causes: no KDS root key, the OU missing Set-LapsADComputerSelfPermission, the managed account not existing on the workstation.

Questions about this page? Ask in the chat or write to support@gpwarden.com.