Claim Your
Off Discount

Ipa User-unlock

How long the user stays locked out before the system automatically tries to re-enable them (if configured).

After running the command, the administrator should verify that the account status has changed.

Unlocking an account resets the failure counter but does change the user's password. If the user forgot their password, unlocking the account will only result in them locking it again on their next attempt. In cases of forgotten credentials, use the password reset command instead: ipa user-mod target_username --password Use code with caution.

The account remains locked until a specific time duration expires (if a temporary lockout is configured) or until an administrator manually clears the lockout status. Prerequisites for Running the Command ipa user-unlock

You don't always want to use the "admin" account for simple unlocks. You can create a specific Helpdesk Role with just enough power to unlock users: Create Permission: Define a permission that can write to the krbloginfailedcount attribute. Add to Privilege: Bundle that permission into a "User Unlock" privilege. Assign to Role:

By default, FreeIPA tracks failed login attempts. If a user exceeds the maximum allowed failures within a specific timeframe, the LDAP attribute nsAccountLockout is set to true , and the user is barred from authenticating via Kerberos, SSSD, or the Web UI. How to Use the ipa user-unlock Command

------------------------ Unlocked user "bjensen" ------------------------ How long the user stays locked out before

: For security reasons, FreeIPA often does not display a "Locked" message to the user during login; the CLI or login prompt may simply continue to ask for the password repeatedly.

True (This confirms the user exceeded failed login attempts). Method 2: Inspecting LDAP Attributes Directly

The output will display the krbLoginFailedCount . If this number exceeds the policy limit, the user is effectively locked out. If the user forgot their password, unlocking the

$ ipa user-unlock jdoe -------------------- Unlocked account "jdoe" --------------------

Run kinit admin to refresh your administrative session, then retry the unlock command. Error: "User Account is Disabled"

Read More

Ready to get started?

Go to Desk
No credit card required