Subject: pkg/34183: openldap-server dies silently on startup after fresh install
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 08/10/2006 22:35:00
>Number:         34183
>Category:       pkg
>Synopsis:       openldap-server dies silently on startup after fresh install
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 10 22:35:00 +0000 2006
>Originator:     Christoph Badura
>Release:        NetBSD 3.0_STABLE
	pkgsrc as of 2006-07-03 but the openldap package hasn't changed
	in relevant ways in the last month.
System: NetBSD limiting-factor 3.0_STABLE NetBSD 3.0_STABLE (GENERIC_LAPTOP) #0: Mon Aug 7 19:16:54 MEST 2006 root@limiting-factor:/u/2/obj/u/1/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
Architecture: i386
Machine: i386
After installing the openldap-server package for the first time on a system
fails to start without any error messages.

There are multiple bugs:

- slapd fails to start because the permissions on $PKG_SYSCONFDIR/openldap and
below don't allow slapd to access the files because they aren't group readable.

- slapd does syslog these errors but it logs them at "local4.debug" instead of
severity "error" or higher.

- also, slapd logs syntax errors in the config files that prevent it from
starting with severity "debug" instead of "error" or higher.

- the file permissions on /var/openldap/openldap-data are wrong, too.

	rm -rf $PKG_SYSCONFDIR/openldap /var/openldap
	cd pkgsrc/databases/openldap-server && make install

	start slapd by way of the rc.d script
	I haven't looked at fixing this.