wrong-database-location
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Thu, 13 Jun 2024 02:23:12 +0000 (19:23 -0700)
committerRyan Tandy <ryan@nardis.ca>
Thu, 13 Jun 2024 02:23:12 +0000 (19:23 -0700)
Move the default slapd database location to /var/lib/ldap instead of
/var/openldap-data.

Debian-specific.

Gbp-Pq: Name wrong-database-location

doc/man/man5/slapd-config.5
doc/man/man5/slapd-mdb.5
doc/man/man5/slapd.conf.5
include/ldap_defaults.h
servers/slapd/Makefile.in

index 9a47c028ea4435b49267550b3283217290ce9702..e260d645a5d0ed63c404d18a8c3e9265534cf6a2 100644 (file)
@@ -2205,7 +2205,7 @@ olcSuffix: "dc=our\-domain,dc=com"
 # The database directory MUST exist prior to
 # running slapd AND should only be accessible
 # by the slapd/tools. Mode 0700 recommended.
-olcDbDirectory: LOCALSTATEDIR/openldap\-data
+olcDbDirectory: LOCALSTATEDIR/lib/ldap
 # Indices to maintain
 olcDbIndex:     objectClass  eq
 olcDbIndex:     cn,sn,mail   pres,eq,approx,sub
index c9391799db1d1e9406a209abcabdd639fbe723b9..a05f18a72f50ffdd9901f5f2d37ffbc151afdaa4 100644 (file)
@@ -63,7 +63,7 @@ Specify the directory where the LMDB files containing this database and
 associated indexes live.
 A separate directory must be specified for each database.
 The default is
-.BR LOCALSTATEDIR/openldap\-data .
+.BR LOCALSTATEDIR/lib/ldap .
 .TP
 \fBenvflags \fR{\fBnosync\fR,\fBnometasync\fR,\fBwritemap\fR,\fBmapasync\fR,\fBnordahead\fR}
 Specify flags for finer-grained control of the LMDB library's operation.
index 4518498e8304454e088e14919bd5502980b97fc1..0a2c329ee7ee0a3122c0c2f4525567dd7437f4e9 100644 (file)
@@ -2095,7 +2095,7 @@ suffix    "dc=our\-domain,dc=com"
 # The database directory MUST exist prior to
 # running slapd AND should only be accessible
 # by the slapd/tools. Mode 0700 recommended.
-directory LOCALSTATEDIR/openldap\-data
+directory LOCALSTATEDIR/lib/ldap
 # Indices to maintain
 index     objectClass  eq
 index     cn,sn,mail   pres,eq,approx,sub
index f1dd7b800f5bb6feda9976961dc5b97868055459..b788ef9b4d3e5c05c166a6b644ccbd8042ba4cd9 100644 (file)
@@ -47,7 +47,7 @@
        /* location of the default slapd config file */
 #define SLAPD_DEFAULT_CONFIGFILE       LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
 #define SLAPD_DEFAULT_CONFIGDIR                LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.d"
-#define SLAPD_DEFAULT_DB_DIR           LDAP_RUNDIR LDAP_DIRSEP "openldap-data"
+#define SLAPD_DEFAULT_DB_DIR           LDAP_RUNDIR LDAP_DIRSEP "lib" LDAP_DIRSEP "ldap"
 #define SLAPD_DEFAULT_DB_MODE          0600
 #define SLAPD_DEFAULT_UCDATA           LDAP_DATADIR LDAP_DIRSEP "ucdata"
        /* default max deref depth for aliases */
index 3827b70f3199f5d8b4252643ddc56e61b1dd79b1..f3e3c19469bdd1b021267c84d2255d3c1b73cdbc 100644 (file)
@@ -452,9 +452,9 @@ install-conf: FORCE
 
 install-db-config: FORCE
        @-$(MKDIR) $(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir)
-       @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-data
+       @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/lib/ldap
        $(INSTALL) $(INSTALLFLAGS) -m 600 $(srcdir)/DB_CONFIG \
-               $(DESTDIR)$(localstatedir)/openldap-data/DB_CONFIG.example
+               $(DESTDIR)$(localstatedir)/lib/ldap/DB_CONFIG.example
        $(INSTALL) $(INSTALLFLAGS) -m 600 $(srcdir)/DB_CONFIG \
                $(DESTDIR)$(sysconfdir)/DB_CONFIG.example