Backupninja cannot back up LDAP w. cn=config backend
Bug #289957 reported by
Morten Siebuhr
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
backupninja (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: backupninja
In Intrepid (8.10), backupninja (0.9.5-3) cannot back up OpenLDAP, as it cannot find the configuration file /etc/ldap/
To post a comment you must log in.
From reading the source, I found a workaround that permits taking backups without changing the source code:
The LDAP configuration file should read as:
databases = cn=config dc=example,dc=com s/ldapscripts. passwd
binddn = cn=admin,cn=config
passwordfile = /etc/ldapscript
ldaphost = ldap.example.com
conf = /etc/ldap/ldap.conf
There are two hacks here: the passwordfile should be a file with the LDAP master password - as I already have ldapscripts installed, I reuse that file. The configuration file is NOT set to /etc/ldap/ slapd.conf, as it does not exist and that causes the entire script to fail - but as we give it all needed options ourselves, we can just give it any other file...