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