Package: slapd Version: 2.1.30-3 Severity: minor When installing slapd for the first time, the config script printed a message from vind about the missing /var/lib/ldap/. This problem might be related to bug #276380, "slapd: config asks to move /var/lib/ldap when it doesn't exist". This is the messages that appeared. Notice the 'find: /var/lib/ldap: No such file or directory'.
Get:6 http://ftp.skolelinux.no testing/main openssl 0.9.7e-2 [906kB] Get:7 http://ftp.skolelinux.no testing/main slapd 2.1.30-3 [942kB] Fetched 2323kB in 7s (304kB/s) Preconfiguring packages ... find: /var/lib/ldap: No such file or directory Selecting previously deselected package db4.2-util. I suspect this code is the problem: # Check if a path refers to an empty directory is_empty_dir() { output=`find "$1" -type d -maxdepth 0 -empty` if [ -n "$output" ]; then return 0 else return 1 fi } [...] if ! is_empty_dir /var/lib/ldap; then db_input low slapd/move_old_database || true fi I suspect add '2> /dev/null' to the 'find' call in is_empty_dir() will solve the problem. Another solution might be to use 'test -d $1" first to check if the directory exist before calling 'find'. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.4.27-2-686 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages slapd depends on: ii coreutils [fileutils] 5.2.1-2 The GNU core utilities ii debconf 1.4.30.11 Debian configuration management sy ii fileutils 5.2.1-2 The GNU file management utilities ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libdb4.2 4.2.52-17 Berkeley v4.2 Database Libraries [ ii libgcrypt11 1.2.0-4 LGPL Crypto library - runtime libr ii libgnutls11 1.0.16-9 GNU TLS library - runtime library ii libgpg-error0 1.0-1 library for common error values an ii libiodbc2 3.52.1-2 iODBC Driver Manager ii libldap2 2.1.30-3 OpenLDAP libraries ii libltdl3 1.5.6-4 A system independent dlopen wrappe ii libsasl2 2.1.19-1.5 Authentication abstraction library ii libslp1 1.0.11-7 OpenSLP libraries ii libwrap0 7.6.dbs-6 Wietse Venema's TCP wrappers libra ii perl [libmime-base64-perl] 5.8.4-5 Larry Wall's Practical Extraction ii psmisc 21.5-1 Utilities that use the proc filesy ii zlib1g 1:1.2.2-3 compression library - runtime -- debconf information: * slapd/password2: (password omitted) slapd/internal/adminpw: (password omitted) * slapd/password1: (password omitted) slapd/password_mismatch: slapd/fix_directory: true slapd/invalid_config: true shared/organization: intern slapd/upgrade_slapcat_failure: slapd/upgrade_slapadd_failure: slapd/backend: BDB slapd/allow_ldap_v2: false slapd/no_configuration: false slapd/move_old_database: true slapd/suffix_change: false slapd/slave_databases_require_updateref: slapd/autoconf_modules: true slapd/purge_database: false slapd/admin: slapd/domain: intern -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

