[Pkg-openldap-devel] DIFF to fix bug in slapd init.d startup script

Aaron J. Zirbes ajz at umn.edu
Wed Apr 9 20:03:11 UTC 2008


I noticed the slapd init.d script doesn't set proper permissions on the BDB directory and it's
contents causing the initial invocation of slapd to fail.  Here's my fix against the current Ubuntu
apt-get install release.

Package: slapd
Version: 2.3.35-1ubuntu0.2

Here's the output from

`diff /etc/init.d/slapd /etc/init.d/slapd.ajz`

61a62,67
> # Find out the location of slapd's db directory
> if [ -z "$SLAPD_DBDIR" ]; then
>       SLAPD_DBDIR=`sed -ne 's/^directory[[:space:]]\+\(.\+\)/\1/p' \
>               "$SLAPD_CONF"`
> fi
>
79a86,91
> # Make sure the database directory exists with correct permissions
> if [ -d "$SLAPD_DBDIR" ]; then
>       [ -z "$SLAPD_USER" ] || chown -R "$SLAPD_USER" "$SLAPD_DBDIR"
>       [ -z "$SLAPD_GROUP" ] || chgrp -R "$SLAPD_GROUP" "$SLAPD_DBDIR"
> fi
>


I hope you can include this in the next release!  Thanks!

--
Aaron J. Zirbes
Systems Administrator
University of Minnesota
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ajz.vcf
Type: text/x-vcard
Size: 317 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20080409/944689fa/attachment-0001.vcf 


More information about the Pkg-openldap-devel mailing list