Reset a User's Password
A user has lost access to their account. Before taking action, identify which of the three passwords is involved: they are independent.
Three distinct passwords
Section titled “Three distinct passwords”| Password | Used for | Where to reset it |
|---|---|---|
| Identity (Kanidm) | Logging into services (SSO) | Kanidm token (below) |
| Vault (Vaultwarden) | Unlocking the password manager | Vaultwarden invitation |
| Session (NixOS) | Opening a session on a workstation | just passwd (below) |
Identity and vault
Section titled “Identity and vault”-
Vault (Vaultwarden): resend an invitation from the admin interface; the user resets their master password via email.
-
Identity (Kanidm): regenerate a reset token on the coordination server:
Fenêtre de terminal just enter hcskanidm person credential create-reset-token <login> --name idm_admin -
Send the link or QR code to the user, who then recreates their key and recovery password.
Session password
Section titled “Session password”The login password on a workstation is managed in secrets, not in Kanidm:
-
Set the password
Fenêtre de terminal just passwd <login> -
Validate and deploy
Fenêtre de terminal just commit "user(passwd): <login>"just apply @user-<login>