Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeIPA HTTP error 400 Bad Request during login #3

Open
lva opened this issue Mar 20, 2024 · 1 comment
Open

FreeIPA HTTP error 400 Bad Request during login #3

lva opened this issue Mar 20, 2024 · 1 comment

Comments

@lva
Copy link

lva commented Mar 20, 2024

For some reason, our FreeIPA server is starting to return HTTP error 400 Bad Request during login.
We found it is expecting the Referer header to be set in the the login request.
I managed to fix your code by adding the following code to Get-FreeIPAAPIAuthenticationCookie:
$params.add('Headers', @{'Referer' = "$($global:FreeIPAAPIServerConfig.ServerURL)/ipa/session/login_password"})

@KisSsArt
Copy link

KisSsArt commented Jun 1, 2024

Thank you! Its work =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants