2 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
5 * Redistribution and use in source and binary forms are permitted only
6 * as authorized by the OpenLDAP Public License. A copy of this
7 * license is available at http://www.OpenLDAP.org/license.html or
8 * in file LICENSE in the top-level directory of the distribution.
11 * Copyright (c) 1994 Regents of the University of Michigan.
12 * All rights reserved.
14 * Redistribution and use in source and binary forms are permitted
15 * provided that this notice is preserved and that due credit is given
16 * to the University of Michigan at Ann Arbor. The name of the University
17 * may not be used to endorse or promote products derived from this
18 * software without specific prior written permission. This software
19 * is provided ``as is'' without express or implied warranty.
22 #ifndef _LDAP_CONFIG_H
23 #define _LDAP_CONFIG_H
26 * config.h for LDAP -- edit this file to customize OpenLDAP behavior.
27 * NO platform-specific definitions should be placed in this file.
32 * These are shared with Makefile and should not change via configure
34 #define DEFAULT_DIRSEP "/"
35 #define DEFAULT_BINDIR "%BINDIR%"
36 #define DEFAULT_SBINDIR "%SBINDIR%"
37 #define DEFAULT_DATADIR "%DATADIR%"
38 #define DEFAULT_SYSCONFDIR "%SYSCONFDIR%"
39 #define DEFAULT_LIBEXECDIR "%LIBEXECDIR%"
40 #define DEFAULT_RUNDIR "%RUNDIR%"
42 #define DEFAULT_EDITOR "%EDITOR%"
44 #define DEFAULT_LDAP_CONF_FILE "%SYSCONFDIR%/ldap.conf"
45 #define DEFAULT_LDAP_USERRC_FILE "ldaprc"
46 #define DEFAULT_LDAP_ENV_PREFIX "LDAP"
49 /*********************************************************************
51 * You probably do not need to edit anything below this point *
53 *********************************************************************/
56 * SHARED DEFINITIONS - other things you can change
58 /* default attribute to use when sorting entries, NULL => sort by DN */
59 #define SORT_ATTR NULL
60 /* default count of DN components to show in entry displays */
61 #define DEFAULT_RDNCOUNT 2
62 /* default config file locations */
63 #define FILTERFILE "%SYSCONFDIR%/ldapfilter.conf"
64 #define TEMPLATEFILE "%SYSCONFDIR%/ldaptemplates.conf"
65 #define SEARCHFILE "%SYSCONFDIR%/ldapsearchprefs.conf"
66 #define FRIENDLYFILE "%DATADIR%/ldapfriendly"
72 #define FINGER_BANNER "OpenLDAP Finger Service...\r\n"
73 /* who to report errors to */
74 #define FINGER_ERRORS "System Administrator"
75 /* what to say if no matches are found */
76 #define FINGER_NOMATCH "Search failed to find anything.\r\n"
77 /* what to say if the service may be unavailable */
78 #define FINGER_UNAVAILABLE \
79 "The directory service may be temporarily unavailable.\r\n\
80 Please try again later.\r\n"
81 /* printed if a match has no email address - for disptmp default */
82 #define FINGER_NOEMAIL1 "None registered in this service."
83 #define FINGER_NOEMAIL2 NULL
84 #define FINGER_NOEMAIL { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
85 /* maximum number of matches returned */
86 #define FINGER_SIZELIMIT 50
87 /* max number of hits displayed in full before a list is presented */
88 #define FINGER_LISTLIMIT 1
89 /* what to exec for "finger @host" */
90 #define FINGER_CMD "%FINGER%"
91 /* how to treat aliases when searching */
92 #define FINGER_DEREF LDAP_DEREF_FINDING
93 /* attribute to use when sorting results */
94 #define FINGER_SORT_ATTR SORT_ATTR
95 /* enable ufn support */
97 /* timeout for searches */
98 #define FINGER_TIMEOUT 60
99 /* number of DN components to show in entry displays */
100 #define FINGER_RDNCOUNT DEFAULT_RDNCOUNT
103 * GO500 GOPHER GATEWAY DEFINITIONS
105 /* port on which to listen */
106 #define GO500_PORT 5555
107 /* how to handle aliases */
108 #define GO500_DEREF LDAP_DEREF_FINDING
109 /* attribute to use when sorting results */
110 #define GO500_SORT_ATTR SORT_ATTR
111 /* timeout for searches */
112 #define GO500_TIMEOUT 180
113 /* enable ufn support */
116 * only set and uncomment this if your hostname() does not return
117 * a fully qualified hostname
119 /* #define GO500_HOSTNAME "fully.qualified.hostname.here" */
120 /* number of DN components to show in entry displays */
121 #define GO500_RDNCOUNT DEFAULT_RDNCOUNT
124 * GO500GW GOPHER GATEWAY DEFINITIONS
126 /* where the helpfile lives */
127 #define GO500GW_HELPFILE "%DATADIR%/go500gw.help"
128 /* port on which to listen */
129 #define GO500GW_PORT 7777
130 /* timeout on all searches */
131 #define GO500GW_TIMEOUT 180
132 /* enable ufn support */
134 /* attribute to use when sorting results */
135 #define GO500GW_SORT_ATTR SORT_ATTR
137 * only set and uncomment this if your hostname() does not return
138 * a fully qualified hostname
140 /* #define GO500GW_HOSTNAME "fully.qualified.hostname.here" */
141 /* number of DN components to show in entry displays */
142 #define GO500GW_RDNCOUNT DEFAULT_RDNCOUNT
145 * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
147 /* where the helpfile lives */
148 #define RCPT500_HELPFILE "%DATADIR%/rcpt500.help"
149 /* maximum number of matches returned */
150 #define RCPT500_SIZELIMIT 50
151 /* address replies will appear to come from */
152 #define RCPT500_FROM "\"Directory Query Program\" <Dir-Query>"
153 /* command that will accept an RFC822 message text on standard
154 input, and send it. sendmail -t does this nicely. */
155 #define RCPT500_PIPEMAILCMD "%SENDMAIL% -t"
156 /* attribute to use when sorting results */
157 #define RCPT500_SORT_ATTR SORT_ATTR
158 /* max number of hits displayed in full before a list is presented */
159 #define RCPT500_LISTLIMIT 1
160 /* enable ufn support */
162 /* number of DN components to show in entry displays */
163 #define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT
166 * MAIL500 MAILER DEFINITIONS
168 /* max number of ambiguous matches reported */
169 #define MAIL500_MAXAMBIGUOUS 10
170 /* max subscribers allowed (size limit when searching for them ) */
171 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
172 /* timeout for all searches */
173 #define MAIL500_TIMEOUT 180
174 /* sendmail location - mail500 needs to exec this */
175 #define MAIL500_SENDMAIL "%SENDMAIL%"
180 /* ud configuration file */
181 #define UD_CONFIG_FILE "%SYSCONFDIR%/ud.conf"
183 #define UD_DEFAULT_EDITOR DEFAULT_EDITOR
184 /* default bbasename of user config file */
185 #define UD_USER_CONFIG_FILE ".udrc"
186 /* default base where groups are created */
187 #define UD_WHERE_GROUPS_ARE_CREATED ""
188 /* default base below which all groups live */
189 #define UD_WHERE_ALL_GROUPS_LIVE ""
194 /* how long to wait for searches */
195 #define FAX_TIMEOUT 180
196 /* maximum number of ambiguous matches reported */
197 #define FAX_MAXAMBIGUOUS 10
198 /* maximum number of members allowed */
199 #define FAX_MAXMEMBERS LDAP_NO_LIMIT
200 /* program to send mail */
201 #define FAX_SENDMAIL "%SENDMAIL%"
206 /* prefix to add to non-fully-qualified numbers */
207 #define RP_PHONEPREFIX ""
212 /* location of the default slapd config file */
213 #define SLAPD_DEFAULT_CONFIGFILE "%SYSCONFDIR%/slapd.conf"
214 /* default max deref depth for aliases */
215 #define SLAPD_DEFAULT_MAXDEREFDEPTH 15
216 /* default sizelimit on number of entries from a search */
217 #define SLAPD_DEFAULT_SIZELIMIT 500
218 /* default timelimit to spend on a search */
219 #define SLAPD_DEFAULT_TIMELIMIT 3600
220 /* minimum max ids that a single index entry can map to in ldbm */
221 #define SLAPD_LDBM_MIN_MAXIDS 4000
223 /* the following DNs must be normalized and in uppercase! */
224 /* dn of the special "monitor" entry */
225 #define SLAPD_MONITOR_DN "CN=MONITOR"
226 /* dn of the special "config" entry */
227 #define SLAPD_CONFIG_DN "CN=CONFIG"
228 /* dn of the special "schema" entry */
229 /* #define SLAPD_SCHEMA_DN "CN=SCHEMA" */
231 #endif /* _LDAP_CONFIG_H */