Package: slapd Version: 2.4.23-4 Severity: normal Tags: patch sid Hi,
upgrading slapd to 2.4.23-4 failed. Error message ------------- (Reading database ... 244861 files and directories currently installed.) Preparing to replace slapd 2.4.23-3pm1 (using slapd_2.4.23-4_amd64.deb) ... Stopping OpenLDAP: slapd [ OK ] Dumping to /var/backups/slapd-2.4.23-3pm1: grep: /cn=config/olcDatabase*: No such file or directory Unpacking replacement slapd ... Setting up slapd (2.4.23-4) ... Installing new version of config file /etc/init.d/slapd ... Moving old database directory to /var/backups: - directory unknown... done. Creating initial configuration... mkdir: missing operand Try `mkdir --help' for more information. dpkg: error processing slapd (--install): subprocess installed post-installation script returned error exit status 1 Processing triggers for man-db ... Errors were encountered while processing: slapd Environment ----------- * old version 2.4.23-3pm1 (= Debian 2.4.23-3 with patches in 593878 & 593880 applied) * databases using libdb4.8 4.8.30-1 * slapd.conf based config (but should not matter) * SLAPD_CONF set to empty string (in /etc/default/slapd) n the error message above please note especially the lines grep: /cn=config/olcDatabase*: No such file or directory and Creating initial configuration... mkdir: missing operand Try `mkdir --help' for more information. Looking at slapd.postinst they both indicate that SLAPD_CONF needs to be set (although I admit that this may be a special case). The attached patch tries to fix it. Thanks for openldap in Debian Best PEter -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages slapd depends on: ii adduser 3.112 add and remove users and groups ii coreutils 8.5-1 GNU core utilities ii debconf [debconf-2.0] 1.5.35 Debian configuration management sy ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib ii libdb4.8 4.8.30-1 Berkeley v4.8 Database Libraries [ ii libgnutls26 2.8.6-1 the GNU TLS library - runtime libr ii libldap-2.4-2 2.4.23-4pm1 OpenLDAP libraries ii libltdl7 2.2.6b-2 A system independent dlopen wrappe ii libperl5.10 5.10.1-14 shared Perl library ii libsasl2-2 2.1.23.dfsg1-5 Cyrus SASL - authentication abstra ii libslp1 1.2.1-7.7 OpenSLP libraries ii libwrap0 7.6.q-19 Wietse Venema's TCP wrappers libra ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip ii perl [libmime-base64-perl 5.10.1-14 Larry Wall's Practical Extraction ii psmisc 22.11-1 utilities that use the proc file s ii unixodbc 2.2.14p2-1 ODBC tools libraries Versions of packages slapd recommends: ii libsasl2-modules 2.1.23.dfsg1-5 Cyrus SASL - pluggable authenticat Versions of packages slapd suggests: ii ldap-utils 2.4.23-4pm1 OpenLDAP utilities -- Configuration Files: /etc/default/slapd changed: SLAPD_CONF= SLAPD_USER="openldap" SLAPD_GROUP="openldap" SLAPD_PIDFILE= SLAPD_SERVICES="ldap:/// ldaps:/// ldapi:///" SLAPD_SENTINEL_FILE=/etc/ldap/noslapd export KRB5_KTNAME="FILE:/etc/ldap/slapd.keytab" SLAPD_OPTIONS="-o slp=(tree=experimental),(server-type=OpenLDAP),(server-version=2.4.23)" -- debconf information excluded
--- openldap-2.4.23/debian/slapd.scripts-common 2010-08-28 16:47:18.883161909 +0200 +++ openldap-2.4.23/debian/slapd.scripts-common 2010-08-28 17:13:13.814706108 +0200 @@ -752,6 +752,8 @@ [ ! -e "/etc/ldap/slapd.d" ]; then SLAPD_CONF="/etc/ldap/slapd.conf" + else + SLAPD_CONF="/etc/ldap/slapd.d" fi fi