]> git.sur5r.net Git - openldap/blob - include/ldap_defaults.h
Silence warning in prev commit
[openldap] / include / ldap_defaults.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted only as authorized by the OpenLDAP
8  * Public License.  A copy of this license is available at
9  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
10  * top-level directory of the distribution.
11  */
12 /* Portions
13  * Copyright (c) 1994 Regents of the University of Michigan.
14  * All rights reserved.
15  *
16  * Redistribution and use in source and binary forms are permitted
17  * provided that this notice is preserved and that due credit is given
18  * to the University of Michigan at Ann Arbor. The name of the University
19  * may not be used to endorse or promote products derived from this
20  * software without specific prior written permission. This software
21  * is provided ``as is'' without express or implied warranty.
22  */
23
24 /*
25  * This file controls defaults for OpenLDAP package.
26  * You probably do not need to edit the defaults provided by this file.
27  */
28
29 #ifndef _LDAP_DEFAULTS_H
30 #define _LDAP_DEFAULTS_H
31
32
33 #include <ldap_config.h>
34
35 #define LDAP_CONF_FILE   LDAP_SYSCONFDIR LDAP_DIRSEP "ldap.conf"
36 #define LDAP_USERRC_FILE "ldaprc"
37 #define LDAP_ENV_PREFIX "LDAP"
38
39 /* default ldapi:// socket */
40 #define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "ldapi"
41
42 /*
43  * MAIL500 MAILER DEFINITIONS
44  */
45         /* max number of ambiguous matches reported */
46 #define MAIL500_MAXAMBIGUOUS    10
47         /* max subscribers allowed (size limit when searching for them ) */
48 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
49         /* timeout for all searches */
50 #define MAIL500_TIMEOUT         180
51         /* sendmail location - mail500 needs to exec this */
52 #define MAIL500_SENDMAIL        LDAP_SENDMAIL
53
54 /*
55  * UD DEFINITIONS
56  */
57         /* default config file locations */
58 #define FILTERFILE      LDAP_SYSCONFDIR LDAP_DIRSEP "ldapfilter.conf"
59         /* ud configuration file */
60 #define UD_CONFIG_FILE          LDAP_SYSCONFDIR LDAP_DIRSEP "ud.conf"
61         /* default editor */
62 #define UD_DEFAULT_EDITOR       LDAP_EDITOR
63         /* default bbasename of user config file */
64 #define UD_USER_CONFIG_FILE     ".udrc"
65         /* default base where groups are created */
66 #define UD_WHERE_GROUPS_ARE_CREATED     ""
67         /* default base below which all groups live */
68 #define UD_WHERE_ALL_GROUPS_LIVE        ""
69
70 /*
71  * SLAPD DEFINITIONS
72  */
73         /* location of the default slapd config file */
74 #define SLAPD_DEFAULT_CONFIGFILE        LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
75 #define SLAPD_DEFAULT_DB_DIR            LDAP_DATADIR LDAP_DIRSEP "openldap-data"
76 #define SLAPD_DEFAULT_DB_MODE           0600
77 #define SLAPD_DEFAULT_UCDATA            LDAP_DATADIR LDAP_DIRSEP "ucdata"
78         /* default max deref depth for aliases */
79 #define SLAPD_DEFAULT_MAXDEREFDEPTH     15
80         /* default sizelimit on number of entries from a search */
81 #define SLAPD_DEFAULT_SIZELIMIT         500
82         /* default timelimit to spend on a search */
83 #define SLAPD_DEFAULT_TIMELIMIT         3600
84         /* minimum max ids that a single index entry can map to in ldbm */
85 #define SLAPD_LDBM_MIN_MAXIDS           (8192-4)
86
87 /* the following DNs must be normalized! */
88         /* dn of the default subschema subentry */
89 #define SLAPD_SCHEMA_DN                 "cn=Subschema"
90         /* dn of the default "monitor" subentry */
91 #define SLAPD_MONITOR_DN                "cn=Monitor"
92
93 #endif /* _LDAP_CONFIG_H */