summaryrefslogtreecommitdiff
path: root/ldap/mkldapdb
diff options
context:
space:
mode:
authorroot <root@borneuni.dk>2008-09-15 21:47:24 +0000
committerroot <root@borneuni.dk>2008-09-15 21:47:24 +0000
commitade0f747830123ec59808633e594abc4f59ab260 (patch)
tree6c4a689119604e45553e643b36c4b9d7058f6e93 /ldap/mkldapdb
parent796c18f6c557b9d0e0ad692e46965b66bc99cc65 (diff)
parent3e74522b00011ab7070e5c3b30c60572e2d05fc3 (diff)
Merge branch 'master' of git://source.jones.dk/local-COMMON
Diffstat (limited to 'ldap/mkldapdb')
-rwxr-xr-xldap/mkldapdb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ldap/mkldapdb b/ldap/mkldapdb
index 374e4cd..ce9a8c6 100755
--- a/ldap/mkldapdb
+++ b/ldap/mkldapdb
@@ -13,13 +13,13 @@ checkpoint="checkpoint 512 30"
backend="bdb"
backendoptions="# For the Debian package we use 2MB as default but be sure to update this\n# value if you have plenty of RAM\ndbconfig set_cachesize 0 2097152 0\n\n# Sven Hartge reported that he had to set this value incredibly high\n# to get slapd running at all. See http:\/\/bugs.debian.org\/303057\n# for more information.\n\n# Number of objects that can be locked at the same time.\ndbconfig set_lk_max_objects 1500\n# Number of locks (both requested and granted)\ndbconfig set_lk_max_locks 1500\n# Number of lockers\ndbconfig set_lk_max_lockers 1500"
-if [ -r /etc/local/org.conf ]; then
- . /etc/local/org.conf
+if [ -r /etc/local-ORG/orgname ]; then
+ orgname="$(head -n 1 /etc/local-ORG/orgname)"
fi
for var in basedn dnsdomain orgname backend; do
if [ -z "`eval echo '$'$var`" ]; then
- echo 2> "ERROR: Required variable '$var' missing. Exiting...!"
+ echo 1>&2 "ERROR: Required variable '$var' missing. Exiting...!"
exit 1
fi
done
@@ -29,7 +29,7 @@ tempdir=`mktemp -dt slapd.XXXXXX`
cfgdir=/etc/ldap
dbdir=/var/lib/ldap
-for section in base; do
+for section in base horde; do
sed <"$masterdir/$section.ldif.in" >"$tempdir/$section.ldif" \
-e "s/@SUFFIX@/$basedn/g" \
-e "s/@DOMAIN@/$dnsdomain/g" \