Encrypted Windows LAPS¶
Experimental in 3.0
Decryption passes test values made on Windows, but LAPSLens 3.0 hasn't yet asked a real Windows Server domain controller for a key. If your domain encrypts LAPS passwords, please try a lookup and tell us how it went, good or bad.
When Windows LAPS encrypts the password, msLAPS-EncryptedPassword holds it encrypted to a group (by default Domain Admins). Reading the attribute isn't enough: someone has to ask a domain controller for the key, and the DC hands it only to members of that group.
LAPSLens does this the way Windows does, without a Windows machine.
What happens¶
- The lookup reads
msLAPS-EncryptedPasswordover LDAPS, as for any Active Directory lookup. - LAPSLens asks the domain controller for the key, with the Group Key Distribution protocol (MS-GKDI) over RPC, as you, with your Kerberos ticket.
- The DC checks that you're in the group the password was encrypted to. If you are, it returns the key.
- LAPSLens decrypts the password on your Mac and shows it.
The key request is signed in with Kerberos and encrypted end to end (RPC packet privacy). LAPSLens refuses to continue if anything is weaker:
- Kerberos only. If the DC offers NTLM instead, LAPSLens stops. NTLM can't prove it's talking to the real DC.
- Mutual authentication and encryption must both be granted, and every reply must arrive encrypted.
- A full DNS name for the DC, like
dc01.corp.example.com. Kerberos needs it to check the DC's identity; an IP address is refused.
What you need¶
| A Kerberos ticket | For an account in the decryptors group. Check with klist in Terminal. A Mac bound to AD, or with the Kerberos SSO extension, usually has one already; otherwise run kinit [email protected]. |
Read access to msLAPS-EncryptedPassword |
The same read permission as for plain Windows LAPS: Set-LapsADReadPasswordPermission. |
| Network | TCP 135 to the DC, then the port the DC hands out from its dynamic RPC range (49152–65535 by default). Kerberos, TCP and UDP 88, to a KDC (usually any DC) for the DC's service ticket. |
The Kerberos ticket and the LDAP sign-in are separate: LAPSLens reads the attribute with the user name and password in the window, and asks for the key with whatever ticket klist shows.
Who can decrypt¶
The Windows LAPS policy setting Configure authorized password decryptors (ADPasswordEncryptionPrincipal) names the group. It's set where you set the rest of the Windows LAPS policy (Group Policy or Intune). If it isn't set, it's Domain Admins.
So a help desk group that should read encrypted passwords needs both:
- read permission on the OU (
Set-LapsADReadPasswordPermission), and - to be the authorized decryptors group in the policy, or inside it.
The paste window shows which group a value was encrypted to: "Only members of S-1-5-21-…-1104 can decrypt it."
Pasting an encrypted value¶
You can also paste a value copied from the attribute (base64, as ADUC's attribute editor or PowerShell shows it) into Decode Pasted Value. LAPSLens recognises it and asks for a domain controller:

Not in 3.0 yet¶
msLAPS-EncryptedPasswordHistory(older passwords) andmsLAPS-EncryptedDSRMPassword(DC recovery passwords).- Picking a DC automatically.