View Issue Details

IDProjectCategoryView StatusLast Update
0001599bareos-coreinstaller / packagespublic2024-03-07 20:11
Reporteradf_patrickha Assigned Toslederer  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSDebianOS Version10
Summary0001599: FD LDAP Plugin has broken dependencies on Debian 11+ (bareos-filedaemon-ldap-python-plugin -> python-ldap)
DescriptionThe package of the FD Python plugin for LDAP backups (bareos-filedaemon-ldap-python-plugin) has broken dependencies, starting on Debian 11. The package is depending on `python-ldap` which is no longer available in Debian 11 and should be replaced with `python3-ldap`.
I'm not sure if the python plugin is fully python3 compatible, as the script uses the shebang `#!/usr/bin/env python` and not `#!/usr/bin/env python3`. But as the package `python-ldap` is not longer installable on Debian 11 and higher and Python 2 is EOL, it should be updated and the dependency should be changed to `python3-ldap` either way.
Steps To ReproduceTry to install the package `bareos-filedaemon-ldap-python-plugin` on Debian 11 or higher with: `apt install bareos-filedaemon-ldap-python-plugin`.
Tagsdebian 11, fd, filedemon, ldap, plugin

Activities

bruno-at-bareos

bruno-at-bareos

2024-02-12 16:36

manager   ~0005764

We will take care of this in a future update
adf_patrickha

adf_patrickha

2024-02-15 17:15

reporter   ~0005778

Thx for looking into it! Also some additional documentation on how to actually use the plugin (FileSet, Jobs, client config, how to do restores, ...) would be nice. At the moment it's not really usable.
adf_patrickha

adf_patrickha

2024-02-15 17:15

reporter   ~0005779

I'm referring to this documentation: https://docs.bareos.org/TasksAndConcepts/Plugins.html#ldap-plugin
slederer

slederer

2024-03-07 20:11

developer   ~0005827

Fix committed to bareos master branch with changesetid 18726.

Related Changesets

bareos: master f8f24c84

2024-02-15 21:23

slederer

Ported: N/A

Details Diff
Bugfix: clean up error handling in LDAP plugin

- 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: 0001599: FD LDAP Plugin has broken dependencies on Debian 11+
Affected Issues
0001599
mod - core/src/plugins/filed/python/ldap/bareos-fd-ldap.py Diff File
mod - debian/control Diff File
mod - debian/control.bareos-filedaemon-python-plugins-common Diff File

Issue History

Date Modified Username Field Change
2024-02-12 11:30 adf_patrickha New Issue
2024-02-12 11:30 adf_patrickha Tag Attached: debian 11
2024-02-12 11:30 adf_patrickha Tag Attached: fd
2024-02-12 11:30 adf_patrickha Tag Attached: filedemon
2024-02-12 11:30 adf_patrickha Tag Attached: ldap
2024-02-12 11:30 adf_patrickha Tag Attached: plugin
2024-02-12 16:36 bruno-at-bareos Assigned To => bruno-at-bareos
2024-02-12 16:36 bruno-at-bareos Status new => acknowledged
2024-02-12 16:36 bruno-at-bareos Note Added: 0005764
2024-02-15 14:23 bruno-at-bareos Assigned To bruno-at-bareos => slederer
2024-02-15 17:15 adf_patrickha Note Added: 0005778
2024-02-15 17:15 adf_patrickha Note Added: 0005779
2024-03-07 20:11 slederer Changeset attached => bareos master f8f24c84
2024-03-07 20:11 slederer Note Added: 0005827
2024-03-07 20:11 slederer Status acknowledged => resolved
2024-03-07 20:11 slederer Resolution open => fixed