Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2009 18:05:52 GMT
From:      Leon Messner <l.messner@physik.tu-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/134494: openldap24-server rc-script conflicts with slapd.d configuration
Message-ID:  <200905121805.n4CI5qDg003067@www.freebsd.org>
Resent-Message-ID: <200905121810.n4CIA292049891@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 12 18:10:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Leon Messner
>Release:        7.2-RELEASE
>Organization:
>Environment:
FreeBSD hermes.physik-pool.tu-berlin.de 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 07:18:07 UTC 2009     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
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
>How-To-Repeat:
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
>Fix:
Check which configuration mechanism is used. Use slapd.conf if both exist.

Lines in rc.d/slapd that are problematic:
---
required_files="/usr/local/etc/openldap/slapd.conf"
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.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905121805.n4CI5qDg003067>