[Bug 1018503] [NEW] slapd fails to install if /etc/ldap/slapd.conf is already there
Riccardo Murri
riccardo.murri at gmail.com
Wed Jun 27 17:05:22 UTC 2012
Public bug reported:
I am trying to install `slapd` on precise, on a machine that was
freshly installed (thus, no slapd previously installed).
I copy `slapd.conf` over from the old server.
Then I try to install `slapd` in a non-interactive fashion (done
through CFEngine 3), using this command:
/usr/bin/env DEBIAN_FRONTEND=noninteractive LC_ALL=C
/usr/bin/aptitude -o Dpkg::Options::=--force-confold -o Dpkg::Options
::=--force-confdef --assume-yes install
However, this fails with the following errors:
Setting up slapd (2.4.28-1.1ubuntu4) ...
Creating initial configuration... mkdir: cannot create directory `/etc/ldap/slapd.conf': File exists
So apparently the postinst script guesses the correct value for
SLAPD_CONF but: (1) still treats it as if it were a directory (i.e.,
`SLAPD_CONF=sladp.d`), and (2) tries to create it as if it did not
exist.
** Affects: openldap (Ubuntu)
Importance: Undecided
Status: Confirmed
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap in Ubuntu.
https://bugs.launchpad.net/bugs/1018503
Title:
slapd fails to install if /etc/ldap/slapd.conf is already there
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/1018503/+subscriptions
More information about the Ubuntu-server-bugs
mailing list