Skip to content

Reset password expired from API or other ways #29

Answered by netoarmando
IronCub3 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @IronCub3! I think the best place is to ask that via IRC or the FreeIPA mailing-lists.

However, I think it needs to be interactive, because the user needs to enter the new password.

In any case, when you submit the login/password as a POST request to the endpoint you mentioned, you'll get a HTTP 401 error (Unauthorized) with the following response header

X-IPA-Rejection-Reason: password-expired

After that, you can make another POST request to https://ipaserver.com/ipa/session/change_password with the fields user, old_password and new_password. This is how the current FreeIPA WebUI works at least.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@IronCub3
Comment options

Answer selected by IronCub3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants