Bug#412781: [Pkg-openldap-devel] Bug#412781: slapd: OpenLDAP 2.1
libraries look in /var/run/ldapi
Russ Allbery
rra at debian.org
Wed Feb 28 05:08:53 UTC 2007
Steve Langasek <vorlon at debian.org> writes:
> Looks good to me; though perhaps it belongs in the init script, since
> /var/run on tmpfs is becoming popular?
How's this instead? This way we don't overwrite the actions of the admin
if they pointed it somewhere else either. I assume that the old slapd
package will remove the socket when it's stopped, so this won't fail due
to the socket already existing.
Index: debian/slapd.init
===================================================================
--- debian/slapd.init (revision 783)
+++ debian/slapd.init (working copy)
@@ -138,6 +138,11 @@
--pidfile "$SLAPD_PIDFILE" \
--exec /usr/sbin/slapd -- -h "$SLAPD_SERVICES" $SLAPD_OPTIONS 2>&1`"
fi
+
+ # Backward compatibility with OpenLDAP 2.1 client libraries.
+ if [ ! -h /var/run/ldapi ] && [ ! -e /var/run/ldapi ] ; then
+ ln -s slapd/ldapi /var/run/ldapi
+ fi
}
# Start the slurpd daemon and capture the error message if any to
--
Russ Allbery (rra at debian.org) <http://www.eyrie.org/~eagle/>
More information about the Pkg-openldap-devel
mailing list