3 * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA
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.
13 * Copyright (c) 1994 Regents of the University of Michigan.
14 * All rights reserved.
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.
25 * This file controls defaults for OpenLDAP package.
26 * You probably do not need to edit the defaults provided by this file.
29 #ifndef _LDAP_DEFAULTS_H
30 #define _LDAP_DEFAULTS_H
33 #include <ldap_config.h>
35 #define LDAP_CONF_FILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldap.conf"
36 #define LDAP_USERRC_FILE "ldaprc"
37 #define LDAP_ENV_PREFIX "LDAP"
39 /* default ldapi:// socket */
40 #define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "ldapi"
43 * SHARED DEFINITIONS - other things you can change
45 /* default attribute to use when sorting entries, NULL => sort by DN */
46 #define SORT_ATTR NULL
47 /* default count of DN components to show in entry displays */
48 #define DEFAULT_RDNCOUNT 2
49 /* default config file locations */
50 #define FILTERFILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldapfilter.conf"
56 #define FINGER_BANNER "OpenLDAP Finger Service...\r\n"
57 /* who to report errors to */
58 #define FINGER_ERRORS "System Administrator"
59 /* what to say if no matches are found */
60 #define FINGER_NOMATCH "Search failed to find anything.\r\n"
61 /* what to say if the service may be unavailable */
62 #define FINGER_UNAVAILABLE \
63 "The directory service may be temporarily unavailable.\r\n\
64 Please try again later.\r\n"
65 /* printed if a match has no email address - for disptmp default */
66 #define FINGER_NOEMAIL1 "None registered in this service."
67 #define FINGER_NOEMAIL2 NULL
68 #define FINGER_NOEMAIL { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
69 /* maximum number of matches returned */
70 #define FINGER_SIZELIMIT 50
71 /* max number of hits displayed in full before a list is presented */
72 #define FINGER_LISTLIMIT 1
73 /* what to exec for "finger @host" */
74 #define FINGER_CMD LDAP_FINGER
75 /* how to treat aliases when searching */
76 #define FINGER_DEREF LDAP_DEREF_FINDING
77 /* attribute to use when sorting results */
78 #define FINGER_SORT_ATTR SORT_ATTR
80 /* enable ufn support */
83 /* timeout for searches */
84 #define FINGER_TIMEOUT 60
85 /* number of DN components to show in entry displays */
86 #define FINGER_RDNCOUNT DEFAULT_RDNCOUNT
89 * MAIL500 MAILER DEFINITIONS
91 /* max number of ambiguous matches reported */
92 #define MAIL500_MAXAMBIGUOUS 10
93 /* max subscribers allowed (size limit when searching for them ) */
94 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
95 /* timeout for all searches */
96 #define MAIL500_TIMEOUT 180
97 /* sendmail location - mail500 needs to exec this */
98 #define MAIL500_SENDMAIL LDAP_SENDMAIL
103 /* ud configuration file */
104 #define UD_CONFIG_FILE LDAP_SYSCONFDIR LDAP_DIRSEP "ud.conf"
106 #define UD_DEFAULT_EDITOR LDAP_EDITOR
107 /* default bbasename of user config file */
108 #define UD_USER_CONFIG_FILE ".udrc"
109 /* default base where groups are created */
110 #define UD_WHERE_GROUPS_ARE_CREATED ""
111 /* default base below which all groups live */
112 #define UD_WHERE_ALL_GROUPS_LIVE ""
117 /* location of the default slapd config file */
118 #define SLAPD_DEFAULT_CONFIGFILE LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
119 #define SLAPD_DEFAULT_UCDATA LDAP_DATADIR LDAP_DIRSEP "ucdata"
120 /* default max deref depth for aliases */
121 #define SLAPD_DEFAULT_MAXDEREFDEPTH 15
122 /* default sizelimit on number of entries from a search */
123 #define SLAPD_DEFAULT_SIZELIMIT 500
124 /* default timelimit to spend on a search */
125 #define SLAPD_DEFAULT_TIMELIMIT 3600
126 /* minimum max ids that a single index entry can map to in ldbm */
127 #define SLAPD_LDBM_MIN_MAXIDS (8192-4)
129 /* the following DNs must be normalized! */
130 /* dn of the default subschema subentry */
131 #define SLAPD_SCHEMA_DN "cn=Subschema"
132 /* dn of the default "monitor" subentry */
133 #define SLAPD_MONITOR_DN "cn=Monitor"
135 #endif /* _LDAP_CONFIG_H */