1 /*        $NetBSD: ldap_defaults.h,v 1.3 2021/08/14 16:14:55 christos Exp $     */
2 
3 /* $OpenLDAP$ */
4 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5  *
6  * Copyright 1998-2021 The OpenLDAP Foundation.
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted only as authorized by the OpenLDAP
11  * Public License.
12  *
13  * A copy of this license is available in file LICENSE in the
14  * top-level directory of the distribution or, alternatively, at
15  * <http://www.OpenLDAP.org/license.html>.
16  */
17 /* Portions Copyright (c) 1994 Regents of the University of Michigan.
18  * All rights reserved.
19  *
20  * Redistribution and use in source and binary forms are permitted
21  * provided that this notice is preserved and that due credit is given
22  * to the University of Michigan at Ann Arbor. The name of the University
23  * may not be used to endorse or promote products derived from this
24  * software without specific prior written permission. This software
25  * is provided ``as is'' without express or implied warranty.
26  */
27 
28 /*
29  * This file controls defaults for OpenLDAP package.
30  * You probably do not need to edit the defaults provided by this file.
31  */
32 
33 #ifndef _LDAP_DEFAULTS_H
34 #define _LDAP_DEFAULTS_H
35 
36 
37 #include <ldap_config.h>
38 
39 #define LDAP_CONF_FILE         LDAP_SYSCONFDIR LDAP_DIRSEP "ldap.conf"
40 #define LDAP_USERRC_FILE "ldaprc"
41 #define LDAP_ENV_PREFIX "LDAP"
42 
43 /* default ldapi:// socket */
44 #define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi"
45 
46 /*
47  * SLAPD DEFINITIONS
48  */
49           /* location of the default slapd config file */
50 #define SLAPD_DEFAULT_CONFIGFILE        LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
51 #define SLAPD_DEFAULT_CONFIGDIR                   LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.d"
52 #define SLAPD_DEFAULT_DB_DIR            LDAP_RUNDIR LDAP_DIRSEP "openldap-data"
53 #define SLAPD_DEFAULT_DB_MODE           0600
54 #define SLAPD_DEFAULT_UCDATA            LDAP_DATADIR LDAP_DIRSEP "ucdata"
55           /* default max deref depth for aliases */
56 #define SLAPD_DEFAULT_MAXDEREFDEPTH     15
57           /* default sizelimit on number of entries from a search */
58 #define SLAPD_DEFAULT_SIZELIMIT                   500
59           /* default timelimit to spend on a search */
60 #define SLAPD_DEFAULT_TIMELIMIT                   3600
61 
62 /* the following DNs must be normalized! */
63           /* dn of the default subschema subentry */
64 #define SLAPD_SCHEMA_DN                           "cn=Subschema"
65           /* dn of the default "monitor" subentry */
66 #define SLAPD_MONITOR_DN                "cn=Monitor"
67 
68 /*
69  * LLOADD DEFINITIONS
70  */
71 #define LLOADD_DEFAULT_CONFIGFILE       LDAP_SYSCONFDIR LDAP_DIRSEP "lloadd.conf"
72 
73 #endif /* _LDAP_CONFIG_H */
74