[Date Prev][Date Next] [Chronological] [Thread] [Top]

default databsae and ucdata directories are wrong (ITS#2622)



Full_Name: Oliver Eikemeier
Version: 2.2.0alpha
OS: FreeBSD
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (62.138.193.91)


The documentation states the default path for ucdata-path is
${localstatedir}/ucdata, but it is ${prefix}/share/openldap/ucdata.

Likewise, the default database directory is ${prefix}/share/openldap.

Fix:

--- openldap-2.2.0.a.patch begins here ---
diff -u include/ldap_defaults.h.orig include/ldap_defaults.h
--- include/ldap_defaults.h.orig	Fri Jan  3 20:20:49 2003
+++ include/ldap_defaults.h	Mon Jun 30 16:57:15 2003
@@ -72,7 +72,7 @@
  */
 	/* location of the default slapd config file */
 #define SLAPD_DEFAULT_CONFIGFILE	LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
-#define SLAPD_DEFAULT_DB_DIR		LDAP_DATADIR LDAP_DIRSEP "openldap-data"
+#define SLAPD_DEFAULT_DB_DIR		LDAP_RUNDIR LDAP_DIRSEP "openldap-data"
 #define SLAPD_DEFAULT_DB_MODE		0600
 #define SLAPD_DEFAULT_UCDATA		LDAP_DATADIR LDAP_DIRSEP "ucdata"
 	/* default max deref depth for aliases */
diff -u doc/man/man5/slapd.conf.5.orig doc/man/man5/slapd.conf.5
--- doc/man/man5/slapd.conf.5.orig	Sat May 24 01:26:38 2003
+++ doc/man/man5/slapd.conf.5	Mon Jun 30 16:59:34 2003
@@ -820,7 +820,7 @@
 .TP
 .B ucdata-path <path>
 Specify the path to the directory containing the Unicode character
-tables. The default path is LOCALSTATEDIR/ucdata.
+tables. The default path is DATADIR/ucdata.
 .SH TLS OPTIONS
 If
 .B slapd
--- openldap-2.2.0.a.patch ends here ---