Backupninja cannot back up LDAP w. cn=config backend

Bug #289957 reported by Morten Siebuhr
10
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/slapd.conf.

Revision history for this message
Morten Siebuhr (msiebuhr) wrote :

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
binddn = cn=admin,cn=config
passwordfile = /etc/ldapscripts/ldapscripts.passwd
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...

Revision history for this message
Morten Siebuhr (msiebuhr) wrote :

Hacked backend for handling cn=config backends. I have not tested it with any other setups than Ubuntus recommended setup (i.e. different database types, different names for the cn=config tree, ...)

Should either go in the source at lp:backupninja/handlers/ldapconf.in or on a running system at /usr/share/backupninja/ldapconf.

Revision history for this message
Andreas Moog (ampelbein) wrote :
Changed in backupninja (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Sergey Svishchev (svs) wrote :

Quoting http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596935

"As of backupninja 0.9.10, the LDAP handler is not shipped anymore."

Revision history for this message
Morten Siebuhr (msiebuhr) wrote :

Backup Ninja doesn't ship that particular backend any more (see comment #4).

Changed in backupninja (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.