-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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_attrs: escape ldap search filter #5435
ldap_attrs: escape ldap search filter #5435
Conversation
Thanks for your contribution! Can you please add a changelog fragment? Thanks. |
CC @mrvanes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks correct to me. I'll merge by the end of this week if nobody complains.
@mrvanes since you're also interested in the LDAP modules, maybe you can take a look here? |
Please note that in #5461 the collection repository was restructured to remove the directory tree in plugins/modules/, and the corresponding tree in tests/unit/plugins/modules/. Your PR modifies files in this directory structure, and unfortunately now has some conflicts, potentially because of this. Please rebase with the current |
b257953
to
c181f2d
Compare
I'm sorry I messed up the rebase. I'll try to fix this |
If that helps, you can find the previous version (inverted) here: https://github.com/ansible-collections/community.general/compare/b2579530da062c7740a9d5f23de1b29b42956f8a..c181f2dd08ed7711cbac620b868ec3f1ec7584e0 |
Co-authored-by: Felix Fontein <felix@fontein.de>
Thanks for your help and reviews @felixfontein, I really appreciate that! I think I've managed to restore the commits. |
Codecov Report
@@ Coverage Diff @@
## main #5435 +/- ##
=======================================
Coverage 45.50% 45.50%
=======================================
Files 988 988
Lines 97111 97111
Branches 17743 17743
=======================================
Hits 44191 44191
Misses 50876 50876
Partials 2044 2044
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Backport to stable-4: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 1a97ca1 on top of patchback/backports/stable-4/1a97ca1a6f77cabca78d18bfd8a9f46939f11f8a/pr-5435 Backporting merged PR #5435 into main
🤖 @patchback |
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #5469 🤖 @patchback |
* escape ldap search filter * move escape to separate line * add changelog fragment * Update changelogs/fragments/5435-escape-ldap-param.yml Co-authored-by: Felix Fontein <felix@fontein.de> * fix encoding * fixup! fix encoding Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 1a97ca1)
@rekup thanks for fixing this! |
* escape ldap search filter * move escape to separate line * add changelog fragment * Update changelogs/fragments/5435-escape-ldap-param.yml Co-authored-by: Felix Fontein <felix@fontein.de> * fix encoding * fixup! fix encoding Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 1a97ca1)
* escape ldap search filter * move escape to separate line * add changelog fragment * Update changelogs/fragments/5435-escape-ldap-param.yml Co-authored-by: Felix Fontein <felix@fontein.de> * fix encoding * fixup! fix encoding Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 1a97ca1) Co-authored-by: Reto Kupferschmid <kupferschmid@puzzle.ch>
* escape ldap search filter * move escape to separate line * add changelog fragment * Update changelogs/fragments/5435-escape-ldap-param.yml Co-authored-by: Felix Fontein <felix@fontein.de> * fix encoding * fixup! fix encoding Co-authored-by: Felix Fontein <felix@fontein.de>
* escape ldap search filter * move escape to separate line * add changelog fragment * Update changelogs/fragments/5435-escape-ldap-param.yml Co-authored-by: Felix Fontein <felix@fontein.de> * fix encoding * fixup! fix encoding Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 1a97ca1) Co-authored-by: Reto Kupferschmid <kupferschmid@puzzle.ch>
* escape ldap search filter * move escape to separate line * add changelog fragment * Update changelogs/fragments/5435-escape-ldap-param.yml Co-authored-by: Felix Fontein <felix@fontein.de> * fix encoding * fixup! fix encoding Co-authored-by: Felix Fontein <felix@fontein.de>
* escape ldap search filter * move escape to separate line * add changelog fragment * Update changelogs/fragments/5435-escape-ldap-param.yml Co-authored-by: Felix Fontein <felix@fontein.de> * fix encoding * fixup! fix encoding Co-authored-by: Felix Fontein <felix@fontein.de>
* escape ldap search filter * move escape to separate line * add changelog fragment * Update changelogs/fragments/5435-escape-ldap-param.yml Co-authored-by: Felix Fontein <felix@fontein.de> * fix encoding * fixup! fix encoding Co-authored-by: Felix Fontein <felix@fontein.de>
SUMMARY
Escape ldap search parameter before passing it to
search_s
Fixes #5434
ISSUE TYPE
COMPONENT NAME
ldap_attrs