-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
UI - LDAP Auth Method TLS Certificate Input #7187
Comments
Even, I got the same error while i was trying to configure LDAP using UI. Then, I tried vault cli. vault write auth/ldap/config and it worked for me. |
I try to configure ldap via API (with ansible) and I hit the same issue too. Glad to learn if anyone has successfully done it and how. |
Hitting this problem with Vault 1.3.x but not Vault 1.2.x. Could there be a regression? I have tried the CLI, the Json payload method and the UI, same "failed to decode PEM block in the certificate" error. The CLI method (vault write auth/ldap/config) worked fine with 1.2.x |
I managed to make it work and it looks like the order or parameters when passed to the cli matters. |
can you share what order you used via the CLI to get this to work? Seeing the same thing. |
(redacted for security reasons) vault write auth/ldap/config |
@jmariondev thank you for the ticket. This will be fixed in 1.4. See the PR for details.. |
Describe the bug
The form to configure an LDAP auth method has a field that takes a PEM-encoded cert, but does not support multi-line input. This causes the error "failed to decode PEM block in the certificate" as it seems to strip newlines from the input.
To Reproduce
Steps to reproduce the behavior:
/ui/vault/settings/auth/configure/ldap/configuration
)Expected behavior
The form input used to be multi-line (or file selection?), which allowed multi-line input. This allowed the certificate data to save properly.
Environment:
vault status
): 1.1.3+premvault version
): Vault v1.1.3 ('9bc820f700f83a7c4bcab54c5323735a581b34eb')The text was updated successfully, but these errors were encountered: