3 * Copyright 1998-2001 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"
51 #define TEMPLATEFILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldaptemplates.conf"
52 #define SEARCHFILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldapsearchprefs.conf"
58 #define FINGER_BANNER "OpenLDAP Finger Service...\r\n"
59 /* who to report errors to */
60 #define FINGER_ERRORS "System Administrator"
61 /* what to say if no matches are found */
62 #define FINGER_NOMATCH "Search failed to find anything.\r\n"
63 /* what to say if the service may be unavailable */
64 #define FINGER_UNAVAILABLE \
65 "The directory service may be temporarily unavailable.\r\n\
66 Please try again later.\r\n"
67 /* printed if a match has no email address - for disptmp default */
68 #define FINGER_NOEMAIL1 "None registered in this service."
69 #define FINGER_NOEMAIL2 NULL
70 #define FINGER_NOEMAIL { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
71 /* maximum number of matches returned */
72 #define FINGER_SIZELIMIT 50
73 /* max number of hits displayed in full before a list is presented */
74 #define FINGER_LISTLIMIT 1
75 /* what to exec for "finger @host" */
76 #define FINGER_CMD LDAP_FINGER
77 /* how to treat aliases when searching */
78 #define FINGER_DEREF LDAP_DEREF_FINDING
79 /* attribute to use when sorting results */
80 #define FINGER_SORT_ATTR SORT_ATTR
82 /* enable ufn support */
85 /* timeout for searches */
86 #define FINGER_TIMEOUT 60
87 /* number of DN components to show in entry displays */
88 #define FINGER_RDNCOUNT DEFAULT_RDNCOUNT
91 * GO500 GOPHER GATEWAY DEFINITIONS
93 /* port on which to listen */
94 #define GO500_PORT 5555
95 /* how to handle aliases */
96 #define GO500_DEREF LDAP_DEREF_FINDING
97 /* attribute to use when sorting results */
98 #define GO500_SORT_ATTR SORT_ATTR
99 /* timeout for searches */
100 #define GO500_TIMEOUT 180
102 /* enable ufn support */
106 * only set and uncomment this if your hostname() does not return
107 * a fully qualified hostname
109 /* #define GO500_HOSTNAME "fully.qualified.hostname.here" */
110 /* number of DN components to show in entry displays */
111 #define GO500_RDNCOUNT DEFAULT_RDNCOUNT
114 * GO500GW GOPHER GATEWAY DEFINITIONS
116 /* where the helpfile lives */
117 #define GO500GW_HELPFILE LDAP_DATADIR LDAP_DIRSEP "go500gw.help"
118 /* port on which to listen */
119 #define GO500GW_PORT 7777
120 /* timeout on all searches */
121 #define GO500GW_TIMEOUT 180
123 /* enable ufn support */
126 /* attribute to use when sorting results */
127 #define GO500GW_SORT_ATTR SORT_ATTR
129 * only set and uncomment this if your hostname() does not return
130 * a fully qualified hostname
132 /* #define GO500GW_HOSTNAME "fully.qualified.hostname.here" */
133 /* number of DN components to show in entry displays */
134 #define GO500GW_RDNCOUNT DEFAULT_RDNCOUNT
137 * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
139 /* where the helpfile lives */
140 #define RCPT500_HELPFILE LDAP_DATADIR LDAP_DIRSEP "rcpt500.help"
141 /* maximum number of matches returned */
142 #define RCPT500_SIZELIMIT 50
143 /* address replies will appear to come from */
144 #define RCPT500_FROM "\"Directory Query Program\" <Dir-Query>"
145 /* command that will accept an RFC822 message text on standard
146 input, and send it. sendmail -t does this nicely. */
147 #define RCPT500_PIPEMAILCMD LDAP_SENDMAIL " -t"
148 /* attribute to use when sorting results */
149 #define RCPT500_SORT_ATTR SORT_ATTR
150 /* max number of hits displayed in full before a list is presented */
151 #define RCPT500_LISTLIMIT 1
153 /* enable ufn support */
156 /* number of DN components to show in entry displays */
157 #define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT
160 * MAIL500 MAILER DEFINITIONS
162 /* max number of ambiguous matches reported */
163 #define MAIL500_MAXAMBIGUOUS 10
164 /* max subscribers allowed (size limit when searching for them ) */
165 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
166 /* timeout for all searches */
167 #define MAIL500_TIMEOUT 180
168 /* sendmail location - mail500 needs to exec this */
169 #define MAIL500_SENDMAIL LDAP_SENDMAIL
174 /* ud configuration file */
175 #define UD_CONFIG_FILE LDAP_SYSCONFDIR LDAP_DIRSEP "ud.conf"
177 #define UD_DEFAULT_EDITOR LDAP_EDITOR
178 /* default bbasename of user config file */
179 #define UD_USER_CONFIG_FILE ".udrc"
180 /* default base where groups are created */
181 #define UD_WHERE_GROUPS_ARE_CREATED ""
182 /* default base below which all groups live */
183 #define UD_WHERE_ALL_GROUPS_LIVE ""
188 /* how long to wait for searches */
189 #define FAX_TIMEOUT 180
190 /* maximum number of ambiguous matches reported */
191 #define FAX_MAXAMBIGUOUS 10
192 /* maximum number of members allowed */
193 #define FAX_MAXMEMBERS LDAP_NO_LIMIT
194 /* program to send mail */
195 #define FAX_SENDMAIL LDAP_SENDMAIL
200 /* prefix to add to non-fully-qualified numbers */
201 #define RP_PHONEPREFIX ""
206 /* location of the default slapd config file */
207 #define SLAPD_DEFAULT_CONFIGFILE LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
208 #define SLAPD_DEFAULT_UCDATA LDAP_DATADIR LDAP_DIRSEP "ucdata"
209 /* default max deref depth for aliases */
210 #define SLAPD_DEFAULT_MAXDEREFDEPTH 15
211 /* default sizelimit on number of entries from a search */
212 #define SLAPD_DEFAULT_SIZELIMIT 500
213 /* default timelimit to spend on a search */
214 #define SLAPD_DEFAULT_TIMELIMIT 3600
215 /* minimum max ids that a single index entry can map to in ldbm */
216 #define SLAPD_LDBM_MIN_MAXIDS (8192-4)
218 /* the following DNs must be normalized! */
219 /* dn of the default subschema subentry */
220 #define SLAPD_SCHEMA_DN "cn=Subschema"
221 /* dn of the default "monitor" subentry */
222 #define SLAPD_MONITOR_DN "cn=Monitor"
224 /* dn of the default "config" subentry */
225 #define SLAPD_CONFIG_DN "cn=Config"
228 #endif /* _LDAP_CONFIG_H */