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

Bugfix: Clean up error handling in LDAP plugin, fix dependencies #1720

Conversation

joergsteffens
Copy link
Member

@joergsteffens joergsteffens commented Feb 28, 2024

Backport of PR #1717 to bareos-23

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

Source code quality (if there were changes to the original PR)
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

Backport quality

Copy link
Contributor

@bruno-at-bareos bruno-at-bareos left a comment

Choose a reason for hiding this comment

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

Great job, thanks

Sebastian Lederer and others added 6 commits March 12, 2024 14:34
- handle referrals in search results
- better error reporting when using incorrect base DN
- refactor reporting of LDAP exceptions
- replace old-style % operator with format()
- Debian package build: fix dependencies for python-ldap

Fixes: bareos#1599: FD LDAP Plugin has broken dependencies on Debian 11+
(cherry picked from commit 430042d)
Accept SYSTEMTEST_LDAP_ADDRESS with port number, like
SYSTEMTEST_LDAP_ADDRESS=127.0.0.1:389

(cherry picked from commit 9c770b0)
Also test how the plugin behaves with wrong credentials.

(cherry picked from commit 81226f2)
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
@BareosBot BareosBot force-pushed the backport/bareos-23/ldap-plugin-cleanup branch from d4fd1ac to c814724 Compare March 12, 2024 14:34
@BareosBot BareosBot merged commit a5e032d into bareos:bareos-23 Mar 12, 2024
@arogge arogge modified the milestone: 23.0.3 Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants