mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
ITS#9675 - Allow overriding default location paths
To the ldapi socket, config file, config directory, and database directory.
This commit is contained in:
parent
87ffc60006
commit
83c712f401
1 changed files with 8 additions and 1 deletions
|
|
@ -39,17 +39,24 @@
|
||||||
#define LDAP_ENV_PREFIX "LDAP"
|
#define LDAP_ENV_PREFIX "LDAP"
|
||||||
|
|
||||||
/* default ldapi:// socket */
|
/* default ldapi:// socket */
|
||||||
|
#ifndef LDAPI_SOCK
|
||||||
#define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi"
|
#define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SLAPD DEFINITIONS
|
* SLAPD DEFINITIONS
|
||||||
*/
|
*/
|
||||||
/* location of the default slapd config file */
|
/* location of the default slapd config file */
|
||||||
|
#ifndef SLAPD_DEFAULT_CONFIGFILE
|
||||||
#define SLAPD_DEFAULT_CONFIGFILE LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
|
#define SLAPD_DEFAULT_CONFIGFILE LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
|
||||||
|
#endif
|
||||||
|
#ifndef SLAPD_DEFAULT_CONFIGDIR
|
||||||
#define SLAPD_DEFAULT_CONFIGDIR LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.d"
|
#define SLAPD_DEFAULT_CONFIGDIR LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.d"
|
||||||
|
#endif
|
||||||
|
#ifndef SLAPD_DEFAULT_DB_DIR
|
||||||
#define SLAPD_DEFAULT_DB_DIR LDAP_RUNDIR LDAP_DIRSEP "openldap-data"
|
#define SLAPD_DEFAULT_DB_DIR LDAP_RUNDIR LDAP_DIRSEP "openldap-data"
|
||||||
|
#endif
|
||||||
#define SLAPD_DEFAULT_DB_MODE 0600
|
#define SLAPD_DEFAULT_DB_MODE 0600
|
||||||
#define SLAPD_DEFAULT_UCDATA LDAP_DATADIR LDAP_DIRSEP "ucdata"
|
|
||||||
/* default max deref depth for aliases */
|
/* default max deref depth for aliases */
|
||||||
#define SLAPD_DEFAULT_MAXDEREFDEPTH 15
|
#define SLAPD_DEFAULT_MAXDEREFDEPTH 15
|
||||||
/* default sizelimit on number of entries from a search */
|
/* default sizelimit on number of entries from a search */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue