summaryrefslogtreecommitdiffstats
path: root/recipes-support/openldap/openldap-2.4.39/wrong-database-location.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/openldap/openldap-2.4.39/wrong-database-location.patch')
-rw-r--r--recipes-support/openldap/openldap-2.4.39/wrong-database-location.patch74
1 files changed, 74 insertions, 0 deletions
diff --git a/recipes-support/openldap/openldap-2.4.39/wrong-database-location.patch b/recipes-support/openldap/openldap-2.4.39/wrong-database-location.patch
new file mode 100644
index 0000000..25d96cb
--- /dev/null
+++ b/recipes-support/openldap/openldap-2.4.39/wrong-database-location.patch
@@ -0,0 +1,74 @@
1Move the default slapd database location to /var/lib/ldap instead of
2/var/openldap-data.
3
4Debian-specific.
5
6--- a/doc/man/man5/slapd-bdb.5
7+++ b/doc/man/man5/slapd-bdb.5
8@@ -131,7 +131,7 @@ Specify the directory where the BDB file
9 associated indexes live.
10 A separate directory must be specified for each database.
11 The default is
12-.BR LOCALSTATEDIR/openldap\-data .
13+.BR LOCALSTATEDIR/lib/ldap .
14 .TP
15 .B dirtyread
16 Allow reads of modified but not yet committed data.
17--- a/doc/man/man5/slapd.conf.5
18+++ b/doc/man/man5/slapd.conf.5
19@@ -2007,7 +2007,7 @@ suffix "dc=our\-domain,dc=com"
20 # The database directory MUST exist prior to
21 # running slapd AND should only be accessible
22 # by the slapd/tools. Mode 0700 recommended.
23-directory LOCALSTATEDIR/openldap\-data
24+directory LOCALSTATEDIR/lib/ldap
25 # Indices to maintain
26 index objectClass eq
27 index cn,sn,mail pres,eq,approx,sub
28--- a/include/ldap_defaults.h
29+++ b/include/ldap_defaults.h
30@@ -47,7 +47,7 @@
31 /* location of the default slapd config file */
32 #define SLAPD_DEFAULT_CONFIGFILE LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
33 #define SLAPD_DEFAULT_CONFIGDIR LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.d"
34-#define SLAPD_DEFAULT_DB_DIR LDAP_RUNDIR LDAP_DIRSEP "openldap-data"
35+#define SLAPD_DEFAULT_DB_DIR LDAP_RUNDIR LDAP_DIRSEP "lib" LDAP_DIRSEP "ldap"
36 #define SLAPD_DEFAULT_DB_MODE 0600
37 #define SLAPD_DEFAULT_UCDATA LDAP_DATADIR LDAP_DIRSEP "ucdata"
38 /* default max deref depth for aliases */
39--- a/servers/slapd/Makefile.in
40+++ b/servers/slapd/Makefile.in
41@@ -445,9 +445,9 @@ install-conf: FORCE
42
43 install-db-config: FORCE
44 @-$(MKDIR) $(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir)
45- @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-data
46+ @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/lib/ldap
47 $(INSTALL) $(INSTALLFLAGS) -m 600 $(srcdir)/DB_CONFIG \
48- $(DESTDIR)$(localstatedir)/openldap-data/DB_CONFIG.example
49+ $(DESTDIR)$(localstatedir)/lib/ldap/DB_CONFIG.example
50 $(INSTALL) $(INSTALLFLAGS) -m 600 $(srcdir)/DB_CONFIG \
51 $(DESTDIR)$(sysconfdir)/DB_CONFIG.example
52
53--- a/doc/man/man5/slapd-config.5
54+++ b/doc/man/man5/slapd-config.5
55@@ -2051,7 +2051,7 @@ olcSuffix: "dc=our\-domain,dc=com"
56 # The database directory MUST exist prior to
57 # running slapd AND should only be accessible
58 # by the slapd/tools. Mode 0700 recommended.
59-olcDbDirectory: LOCALSTATEDIR/openldap\-data
60+olcDbDirectory: LOCALSTATEDIR/lib/ldap
61 # Indices to maintain
62 olcDbIndex: objectClass eq
63 olcDbIndex: cn,sn,mail pres,eq,approx,sub
64--- a/doc/man/man5/slapd-mdb.5
65+++ b/doc/man/man5/slapd-mdb.5
66@@ -52,7 +52,7 @@ Specify the directory where the LMDB fil
67 associated indexes live.
68 A separate directory must be specified for each database.
69 The default is
70-.BR LOCALSTATEDIR/openldap\-data .
71+.BR LOCALSTATEDIR/lib/ldap .
72 .TP
73 \fBenvflags \fR{\fBnosync\fR,\fBnometasync\fR,\fBwritemap\fR,\fBmapasync\fR,\fBnordahead\fR}
74 Specify flags for finer-grained control of the LMDB library's operation.