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

ldap_search: make sure output is always UTF-8 (by allowing to Base64 encode specific values, and force-converting everything else) #6475

Merged
merged 2 commits into from
May 5, 2023

Conversation

felixfontein
Copy link
Collaborator

SUMMARY

Fixes #5704.

This contains a breaking change: it force-converts all output to UTF-8. That's why I don't want to backport this (as a bugfix).

It also allows to specify a list of attributes whose values will be Base64 encoded. This should be used if a caller actually relies on some binary values.

ISSUE TYPE
  • Bugfix Pull Request
  • Feature Pull Request
COMPONENT NAME

ldap_search

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) labels May 2, 2023
@felixfontein felixfontein added the breaking_change This PR contains a breaking change that MUST NOT be backported label May 2, 2023
@felixfontein felixfontein requested a review from russoz May 3, 2023 21:32
Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

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

LGTM

@felixfontein felixfontein merged commit be1a905 into ansible-collections:main May 5, 2023
@felixfontein felixfontein deleted the ldap_search branch May 5, 2023 05:56
@felixfontein
Copy link
Collaborator Author

@russoz thanks for reviewing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking_change This PR contains a breaking change that MUST NOT be backported bug This issue/PR relates to a bug has_issue module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ldap_search: callback utf-8 error "surrogates not allowed" on ansible-core 2.14
3 participants