From 8c386888fa03a1734b4649aa18a22aab50ce5180 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 3 May 2000 10:07:21 +0000 Subject: [PATCH] Move default LDBM directory from /usr/tmp to $(localstatedir) --- doc/man/man5/slapd.conf.5 | 2 +- servers/slapd/Makefile.in | 1 + servers/slapd/slapd.conf | 5 ++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/man/man5/slapd.conf.5 b/doc/man/man5/slapd.conf.5 index 79e7489ef8..3d37fee12f 100644 --- a/doc/man/man5/slapd.conf.5 +++ b/doc/man/man5/slapd.conf.5 @@ -401,7 +401,7 @@ performance at the expense of data security. Specify the directory where the LDBM files containing this database and associated indexes live. A separate directory must be specified for each database. The default is -.B /usr/tmp. +.BR LOCALSTATEDIR/openldap-ldbm . .TP .B index { | default } [ pres,eq,approx,sub,none ] diff --git a/servers/slapd/Makefile.in b/servers/slapd/Makefile.in index 76bf90ee4e..5d15867d0b 100644 --- a/servers/slapd/Makefile.in +++ b/servers/slapd/Makefile.in @@ -201,6 +201,7 @@ install-schema: FORCE install-conf: FORCE @-$(MKDIR) $(DESTDIR)$(sysconfdir) + @-$(MKDIR) $(DESTDIR)$(localstatedir)/openldap-ldbm @for i in $(CFFILES); do \ tmpcf=$$i.tmp ; \ if test $$i = slapd.conf ; then \ diff --git a/servers/slapd/slapd.conf b/servers/slapd/slapd.conf index a36dccabf2..ea9b076b41 100644 --- a/servers/slapd/slapd.conf +++ b/servers/slapd/slapd.conf @@ -36,8 +36,7 @@ suffix "dc=my-domain, dc=com" #suffix "o=My Organization Name, c=US" rootdn "cn=Manager, dc=my-domain, dc=com" #rootdn "cn=Manager, o=My Organization Name, c=US" -rootpw secret # cleartext passwords, especially for the rootdn, should # be avoid. See slapd.conf(5) for details. -directory /usr/tmp - +rootpw secret +directory %LOCALSTATEDIR%/openldap-ldbm -- 2.39.5