tags 452749 patch
thanks

The attached patch fixes this for me. I only quickly looked at this
though, so it may be the wrong approach.

Regards,

-- 
Jonny Lamb, UK                           [EMAIL PROTECTED]
http://jonnylamb.com                             GPG: 0x2E039402
diff -Nru openldap2.3-2.3.39.orig/debian/slapd.scripts-common openldap2.3-2.3.39/debian/slapd.scripts-common
--- openldap2.3-2.3.39.orig/debian/slapd.scripts-common	2008-01-12 02:30:35.000000000 +0000
+++ openldap2.3-2.3.39/debian/slapd.scripts-common	2008-01-12 02:33:25.000000000 +0000
@@ -663,7 +663,7 @@
 	basedn="$1"
 	backend="$2"
 	checkpoint=""
-	conf_template="/usr/share/slapd/slapd.conf"
+	conf_template="/usr/share/slapd/slapd.conf.gz"
 
 	# Note that, unlike in previous versions of this script, we just
 	# assume that our default database is some BerkeleyDB varient.
@@ -671,7 +671,7 @@
 	# appears to be a safe assumption for the forseeable future.
 	conf_new=`mktemp -q ${SLAPD_CONF}.XXXXXX`
 	echo -n "  Creating initial slapd configuration... " >&2
-	sed <"$conf_template" >"$conf_new" \
+	gunzip -c "$conf_template" | sed >"$conf_new" \
 		-e "s/@SUFFIX@/$basedn/g" \
 		-e "s/@ADMIN@/cn=admin,$basedn/g" \
 		-e "s/@BACKEND@/$backend/g"

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to