ports/134494: openldap24-server rc-script conflicts with slapd.d configuration

Leon Messner l.messner at physik.tu-berlin.de
Tue May 12 18:10:03 UTC 2009

>Number:         134494
>Category:       ports
>Synopsis:       openldap24-server rc-script conflicts with slapd.d configuration
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 12 18:10:02 UTC 2009
>Originator:     Leon Messner
>Release:        7.2-RELEASE
FreeBSD hermes.physik-pool.tu-berlin.de 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 07:18:07 UTC 2009     root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
The rc-script of latest openldap24-server (here: openldap-sasl-server-2.4.16_1) errors out if you solely use the slapd.d (cn=config) directory for configuring slapd. About slapd.d see [1].

[1] http://www.zytrax.com/books/ldap/ch6/slapd-config.html
Follow the steps described in [1]. In short:
 * cd /usr/local/etc/openldap
 * edit slapd.conf (not needed for error replication)
 * mkdir slapd.d
 * slaptest -f slapd.conf -F slapd.d
 * mv slapd.conf slapd.conf.bkup
 * ../rc.d/slapd restart
Check which configuration mechanism is used. Use slapd.conf if both exist.

Lines in rc.d/slapd that are problematic:
DATABASEDIR=`awk '$1 == "directory" {print $2}' "/usr/local/etc/openldap/slapd.conf"`
chown "$slapd_owner" "/usr/local/etc/openldap/slapd.conf"
For getting the DATABASEDIR sth. like 

DATABASEDIR=`awk '$1 == "olcDbDirectory:" {print $2}' /usr/local/etc/openldap/slapd.d/cn=config/olcDatabase*.ldif`

should be ok in case slapd.d is used.


More information about the freebsd-ports-bugs mailing list