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

Add support for case_sensitive_names in the vault_ldap_auth_backend #895

Closed
wants to merge 1 commit into from

Conversation

stokkie90
Copy link
Contributor

Fixes #894

@ghost ghost added the size/XS label Nov 5, 2020
Copy link
Member

@catsby catsby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we may want to look at adding a default, using GetOkExists, and/or including a test that can verify we toggle this off and on again before merging. Does that sound reasonable?

@@ -204,6 +209,10 @@ func ldapAuthBackendUpdate(d *schema.ResourceData, meta interface{}) error {
data["bindpass"] = v.(string)
}

if v, ok := d.GetOk("case_sensitive_names"); ok {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to be d.GetOkExists like starttls above, otherwise a value of false wont return ok == true, so we could be in a situation where we can enable this but never disable it. A default value seems in order as well, if possible

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just created this mr with an idea this might solve it. I probably need some help with it. And how to test it. But will get back to this on Monday.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if v, ok := d.GetOk("case_sensitive_names"); ok {
if v, ok := d.GetOkExists("case_sensitive_names"); ok {

@benashz
Copy link
Contributor

benashz commented Feb 10, 2022

Closing with #1176

@benashz benashz closed this Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vault_ldap_auth_backend does not support setting case_sensitive_names
4 participants