2 * Copyright (c) 1994 Regents of the University of Michigan.
5 * Redistribution and use in source and binary forms are permitted
6 * provided that this notice is preserved and that due credit is given
7 * to the University of Michigan at Ann Arbor. The name of the University
8 * may not be used to endorse or promote products derived from this
9 * software without specific prior written permission. This software
10 * is provided ``as is'' without express or implied warranty.
13 #ifndef _LDAP_CONFIG_H
14 #define _LDAP_CONFIG_H
17 * config.h for LDAP -- edit this file to customize LDAP client behavior.
18 * NO platform-specific definitions should be placed in this file.
19 * Note that this IS USED by the LDAP or LBER libraries.
23 * SHARED DEFINITIONS - things you should change
25 #define DEFAULT_BINDIR "%BINDIR%"
26 #define DEFAULT_SBINDIR "%SBINDIR%"
27 #define DEFAULT_SYSCONFDIR "%SYSCONFDIR%"
28 #define DEFAULT_LIBEXECDIR "%LIBEXECDIR%"
30 /* default ldap host */
31 #define LDAPHOST "localhost"
33 #define DEFAULT_LDAPHOST_FILE "%SYSCONFDIR%/ldaphost"
34 /* default place to start searching */
35 #define DEFAULT_BASE "o=Your Organization Name, c=US"
36 #define DEFAULT_BASE_FILE "%SYSCONFDIR%/ldapbase"
39 * default binddn and creditials
40 * use files, make sure they are not generally readable
42 #define DEFAULT_BINDDN NULL
43 #define DEFAULT_BINDDN_FILE "%SYSCONFDIR%/ldapbinddn"
45 #define DEFAULT_BIND_CRED NULL
46 #define DEFAULT_BIND_CRED_FILE "%SYSCONFDIR%/ldapbindcred"
48 /*********************************************************************
50 * You probably do not need to edit anything below this point *
52 *********************************************************************/
55 * SHARED DEFINITIONS - other things you can change
57 /* default attribute to use when sorting entries, NULL => sort by DN */
58 #define SORT_ATTR NULL
59 /* default count of DN components to show in entry displays */
60 #define DEFAULT_RDNCOUNT 2
61 /* default config file locations */
62 #define FILTERFILE "%SYSCONFDIR%/ldapfilter.conf"
63 #define TEMPLATEFILE "%SYSCONFDIR%/ldaptemplates.conf"
64 #define SEARCHFILE "%SYSCONFDIR%/ldapsearchprefs.conf"
65 #define FRIENDLYFILE "%SYSCONFDIR%/ldapfriendly"
71 #define FINGER_BINDDN NULL
72 #define FINGER_BIND_CRED NULL
74 #define FINGER_BASE DEFAULT_BASE
76 #define FINGER_BANNER "X.500 Finger Service...\r\n"
77 /* who to report errors to */
78 #define FINGER_ERRORS "System Administrator"
79 /* what to say if no matches are found */
80 #define FINGER_NOMATCH "Search failed to find anything.\r\n"
81 /* what to say if the service may be unavailable */
82 #define FINGER_UNAVAILABLE \
83 "The directory service may be temporarily unavailable.\r\n\
84 Please try again later.\r\n"
85 /* printed if a match has no email address - for disptmp default */
86 #define FINGER_NOEMAIL1 "None registered in this service."
87 #define FINGER_NOEMAIL2 NULL
88 #define FINGER_NOEMAIL { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
89 /* maximum number of matches returned */
90 #define FINGER_SIZELIMIT 50
91 /* max number of hits displayed in full before a list is presented */
92 #define FINGER_LISTLIMIT 1
93 /* what to exec for "finger @host" */
94 #define FINGER_CMD "%FINGER%"
95 /* how to treat aliases when searching */
96 #define FINGER_DEREF LDAP_DEREF_FINDING
97 /* attribute to use when sorting results */
98 #define FINGER_SORT_ATTR SORT_ATTR
99 /* enable ufn support */
101 /* timeout for searches */
102 #define FINGER_TIMEOUT 60
103 /* number of DN components to show in entry displays */
104 #define FINGER_RDNCOUNT DEFAULT_RDNCOUNT
107 * GO500 GOPHER GATEWAY DEFINITIONS
110 #define GO500_BINDDN NULL
111 #define GO500_BIND_CRED NULL
112 /* where to search */
113 #define GO500_BASE DEFAULT_BASE
114 /* port on which to listen */
115 #define GO500_PORT 5555
116 /* how to handle aliases */
117 #define GO500_DEREF LDAP_DEREF_FINDING
118 /* attribute to use when sorting results */
119 #define GO500_SORT_ATTR SORT_ATTR
120 /* timeout for searches */
121 #define GO500_TIMEOUT 180
122 /* enable ufn support */
125 * only set and uncomment this if your hostname() does not return
126 * a fully qualified hostname
128 /* #define GO500_HOSTNAME "fully.qualified.hostname.here" */
129 /* number of DN components to show in entry displays */
130 #define GO500_RDNCOUNT DEFAULT_RDNCOUNT
133 * GO500GW GOPHER GATEWAY DEFINITIONS
136 #define GO500GW_BINDDN NULL
137 #define GO500GW_BIND_CRED NULL
138 /* where the helpfile lives */
139 #define GO500GW_HELPFILE "%SYSCONFDIR%/go500gw.help"
140 /* port on which to listen */
141 #define GO500GW_PORT 7777
142 /* timeout on all searches */
143 #define GO500GW_TIMEOUT 180
144 /* enable ufn support */
146 /* attribute to use when sorting results */
147 #define GO500GW_SORT_ATTR SORT_ATTR
149 * only set and uncomment this if your hostname() does not return
150 * a fully qualified hostname
152 /* #define GO500GW_HOSTNAME "fully.qualified.hostname.here" */
153 /* number of DN components to show in entry displays */
154 #define GO500GW_RDNCOUNT DEFAULT_RDNCOUNT
157 * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
160 #define RCPT500_BINDDN NULL
161 #define RCPT500_BIND_CRED NULL
162 /* where the helpfile lives */
163 #define RCPT500_HELPFILE "%SYSCONFDIR%/rcpt500.help"
164 /* maximum number of matches returned */
165 #define RCPT500_SIZELIMIT 50
166 /* address replies will appear to come from */
167 #define RCPT500_FROM "\"Directory Query Program\" <Dir-Query>"
168 /* command that will accept an RFC822 message text on standard
169 input, and send it. sendmail -t does this nicely. */
170 #define RCPT500_PIPEMAILCMD "%SENDMAIL% -t"
171 /* where to search */
172 #define RCPT500_BASE DEFAULT_BASE
173 /* attribute to use when sorting results */
174 #define RCPT500_SORT_ATTR SORT_ATTR
175 /* max number of hits displayed in full before a list is presented */
176 #define RCPT500_LISTLIMIT 1
177 /* enable ufn support */
179 /* number of DN components to show in entry displays */
180 #define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT
186 #define LDAPSEARCH_BINDDN NULL
187 #define LDAPSEARCH_BIND_CRED NULL
189 #define LDAPSEARCH_BASE DEFAULT_BASE
195 #define LDAPMODIFY_BINDDN NULL
196 #define LDAPMODIFY_BIND_CRED NULL
198 #define LDAPMODIFY_BASE DEFAULT_BASE
204 #define LDAPDELETE_BINDDN NULL
205 #define LDAPDELETE_BIND_CRED NULL
207 #define LDAPDELETE_BASE DEFAULT_BASE
213 #define LDAPMODRDN_BINDDN NULL
214 #define LDAPMODRDN_BIND_CRED NULL
216 #define LDAPMODRDN_BASE DEFAULT_BASE
219 * MAIL500 MAILER DEFINITIONS
222 #define MAIL500_BINDDN NULL
223 #define MAIL500_BIND_CRED NULL
224 /* max number of ambiguous matches reported */
225 #define MAIL500_MAXAMBIGUOUS 10
226 /* max subscribers allowed (size limit when searching for them ) */
227 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
228 /* timeout for all searches */
229 #define MAIL500_TIMEOUT 180
230 /* sendmail location - mail500 needs to exec this */
231 #define MAIL500_SENDMAIL "%SENDMAIL%"
236 /* ud configuration file */
237 #define UD_CONFIG_FILE "%SYSCONFDIR%/ud.conf"
239 #define UD_DEFAULT_EDITOR "%EDITOR%"
240 /* default bbasename of user config file */
241 #define UD_USER_CONFIG_FILE ".udrc"
242 /* default user to bind as */
243 #define UD_BINDDN NULL
244 /* default password to bind with */
245 #define UD_BIND_CRED NULL
246 /* default search base */
247 #define UD_BASE DEFAULT_BASE
248 /* default base where groups are created */
249 #define UD_WHERE_GROUPS_ARE_CREATED ""
250 /* default base below which all groups live */
251 #define UD_WHERE_ALL_GROUPS_LIVE ""
256 /* what to bind as */
257 #define FAX_BINDDN NULL
258 #define FAX_BIND_CRED NULL
259 /* default search base */
260 #define FAX_BASE DEFAULT_BASE
261 /* how long to wait for searches */
262 #define FAX_TIMEOUT 180
263 /* maximum number of ambiguous matches reported */
264 #define FAX_MAXAMBIGUOUS 10
265 /* maximum number of members allowed */
266 #define FAX_MAXMEMBERS LDAP_NO_LIMIT
267 /* program to send mail */
268 #define FAX_SENDMAIL "%SENDMAIL%"
273 /* what to bind as */
274 #define RP_BINDDN NULL
275 #define RP_BIND_CRED NULL
276 /* default search base */
277 #define RP_BASE DEFAULT_BASE
279 /* prefix to add to non-fully-qualified numbers */
280 #define RP_PHONEPREFIX ""
285 /* location of the default slapd config file */
286 #define SLAPD_DEFAULT_CONFIGFILE "%SYSCONFDIR%/slapd.conf"
287 /* default sizelimit on number of entries from a search */
288 #define SLAPD_DEFAULT_SIZELIMIT 500
289 /* default timelimit to spend on a search */
290 #define SLAPD_DEFAULT_TIMELIMIT 3600
291 /* location of the slapd pid file */
292 #define SLAPD_PIDFILE "%RUNDIR%/slapd.pid"
293 /* location of the slapd args file */
294 #define SLAPD_ARGSFILE "%RUNDIR%/slapd.args"
295 /* dn of the special "monitor" entry */
296 #define SLAPD_MONITOR_DN "cn=monitor"
297 /* dn of the special "config" entry */
298 #define SLAPD_CONFIG_DN "cn=config"
299 /* minimum max ids that a single index entry can map to in ldbm */
300 #define SLAPD_LDBM_MIN_MAXIDS 4000
302 #endif /* _LDAP_CONFIG_H */