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.
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 NOT used by the LDAP or LBER libraries.
23 * SHARED DEFINITIONS - things you should change
25 /* default ldap host */
26 #define LDAPHOST "localhost"
27 /* default place to start searching */
28 #define DEFAULT_BASE "o=Your Organization Name, c=US"
30 /*********************************************************************
32 * You probably do not need to edit anything below this point *
34 *********************************************************************/
37 * SHARED DEFINITIONS - other things you can change
39 /* default attribute to use when sorting entries, NULL => sort by DN */
40 #define SORT_ATTR NULL
41 /* default count of DN components to show in entry displays */
42 #define DEFAULT_RDNCOUNT 2
43 /* default config file locations */
44 #define FILTERFILE "%ETCDIR%/ldapfilter.conf"
45 #define TEMPLATEFILE "%ETCDIR%/ldaptemplates.conf"
46 #define SEARCHFILE "%ETCDIR%/ldapsearchprefs.conf"
47 #define FRIENDLYFILE "%ETCDIR%/ldapfriendly"
53 #define FINGER_BINDDN NULL
55 #define FINGER_BASE DEFAULT_BASE
57 #define FINGER_BANNER "X.500 Finger Service...\r\n"
58 /* who to report errors to */
59 #define FINGER_ERRORS "your local system administrator"
60 /* what to say if no matches are found */
61 #define FINGER_NOMATCH "Search failed to find anything.\r\n"
62 /* what to say if the service may be unavailable */
63 #define FINGER_UNAVAILABLE \
64 "The X.500 service may be temporarily unavailable.\r\n\
65 Please try again later.\r\n"
66 /* printed if a match has no email address - for disptmp default */
67 #define FINGER_NOEMAIL1 "None registered in this service."
68 #define FINGER_NOEMAIL2 NULL
69 #define FINGER_NOEMAIL { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
70 /* maximum number of matches returned */
71 #define FINGER_SIZELIMIT 50
72 /* max number of hits displayed in full before a list is presented */
73 #define FINGER_LISTLIMIT 1
74 /* what to exec for "finger @host" */
75 #define FINGER_CMD "%FINGER%"
76 /* how to treat aliases when searching */
77 #define FINGER_DEREF LDAP_DEREF_FINDING
78 /* attribute to use when sorting results */
79 #define FINGER_SORT_ATTR SORT_ATTR
80 /* enable ufn support */
82 /* timeout for searches */
83 #define FINGER_TIMEOUT 60
84 /* number of DN components to show in entry displays */
85 #define FINGER_RDNCOUNT DEFAULT_RDNCOUNT
88 * GO500 GOPHER GATEWAY DEFINITIONS
91 #define GO500_BINDDN NULL
93 #define GO500_BASE DEFAULT_BASE
94 /* port on which to listen */
95 #define GO500_PORT 5555
96 /* how to handle aliases */
97 #define GO500_DEREF LDAP_DEREF_FINDING
98 /* attribute to use when sorting results */
99 #define GO500_SORT_ATTR SORT_ATTR
100 /* timeout for searches */
101 #define GO500_TIMEOUT 180
102 /* enable ufn support */
105 * only set and uncomment this if your hostname() does not return
106 * a fully qualified hostname
108 /* #define GO500_HOSTNAME "fully.qualified.hostname.here" */
109 /* number of DN components to show in entry displays */
110 #define GO500_RDNCOUNT DEFAULT_RDNCOUNT
113 * GO500GW GOPHER GATEWAY DEFINITIONS
116 #define GO500GW_BINDDN NULL
117 /* where the helpfile lives */
118 #define GO500GW_HELPFILE "%ETCDIR%/go500gw.help"
119 /* port on which to listen */
120 #define GO500GW_PORT 7777
121 /* timeout on all searches */
122 #define GO500GW_TIMEOUT 180
123 /* enable ufn support */
125 /* attribute to use when sorting results */
126 #define GO500GW_SORT_ATTR SORT_ATTR
128 * only set and uncomment this if your hostname() does not return
129 * a fully qualified hostname
131 /* #define GO500GW_HOSTNAME "fully.qualified.hostname.here" */
132 /* number of DN components to show in entry displays */
133 #define GO500GW_RDNCOUNT DEFAULT_RDNCOUNT
136 * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
139 #define RCPT500_BINDDN NULL
140 /* where the helpfile lives */
141 #define RCPT500_HELPFILE "%ETCDIR%/rcpt500.help"
142 /* maximum number of matches returned */
143 #define RCPT500_SIZELIMIT 50
144 /* address replies will appear to come from */
145 #define RCPT500_FROM "\"X.500 Query Program\" <X500-Query>"
146 /* command that will accept an RFC822 message text on standard
147 input, and send it. sendmail -t does this nicely. */
148 #define RCPT500_PIPEMAILCMD "%SENDMAIL% -t"
149 /* where to search */
150 #define RCPT500_BASE DEFAULT_BASE
151 /* attribute to use when sorting results */
152 #define RCPT500_SORT_ATTR SORT_ATTR
153 /* max number of hits displayed in full before a list is presented */
154 #define RCPT500_LISTLIMIT 1
155 /* enable ufn support */
157 /* number of DN components to show in entry displays */
158 #define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT
164 #define LDAPSEARCH_BINDDN NULL
166 #define LDAPSEARCH_BASE DEFAULT_BASE
172 #define LDAPMODIFY_BINDDN NULL
174 #define LDAPMODIFY_BASE DEFAULT_BASE
180 #define LDAPDELETE_BINDDN NULL
182 #define LDAPDELETE_BASE DEFAULT_BASE
188 #define LDAPMODRDN_BINDDN NULL
190 #define LDAPMODRDN_BASE DEFAULT_BASE
193 * MAIL500 MAILER DEFINITIONS
196 #define MAIL500_BINDDN NULL
197 /* max number of ambiguous matches reported */
198 #define MAIL500_MAXAMBIGUOUS 10
199 /* max subscribers allowed (size limit when searching for them ) */
200 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
201 /* timeout for all searches */
202 #define MAIL500_TIMEOUT 180
203 /* sendmail location - mail500 needs to exec this */
204 #define MAIL500_SENDMAIL "%SENDMAIL%"
209 /* ud configuration file */
210 #define UD_CONFIG_FILE "%ETCDIR%/ud.conf"
212 #define UD_DEFAULT_EDITOR "%EDITOR%"
213 /* default bbasename of user config file */
214 #define UD_USER_CONFIG_FILE ".udrc"
215 /* default user to bind as */
216 #define UD_BINDDN NULL
217 /* default password to bind with */
218 #define UD_PASSWD NULL
219 /* default search base */
220 #define UD_BASE DEFAULT_BASE
221 /* default base where groups are created */
222 #define UD_WHERE_GROUPS_ARE_CREATED ""
223 /* default base below which all groups live */
224 #define UD_WHERE_ALL_GROUPS_LIVE ""
229 /* what to bind as */
230 #define FAX_BINDDN NULL
231 /* how long to wait for searches */
232 #define FAX_TIMEOUT 180
233 /* maximum number of ambiguous matches reported */
234 #define FAX_MAXAMBIGUOUS 10
235 /* maximum number of members allowed */
236 #define FAX_MAXMEMBERS LDAP_NO_LIMIT
237 /* program to send mail */
238 #define FAX_SENDMAIL "%SENDMAIL%"
243 /* what to bind as */
244 #define RP_BINDDN NULL
245 /* prefix to add to non-fully-qualified numbers */
246 #define RP_PHONEPREFIX ""
251 /* location of the default slapd config file */
252 #define SLAPD_DEFAULT_CONFIGFILE "%ETCDIR%/slapd.conf"
253 /* default sizelimit on number of entries from a search */
254 #define SLAPD_DEFAULT_SIZELIMIT 500
255 /* default timelimit to spend on a search */
256 #define SLAPD_DEFAULT_TIMELIMIT 3600
257 /* location of the slapd pid file */
258 #define SLAPD_PIDFILE "%RUNDIR%/slapd.pid"
259 /* location of the slapd args file */
260 #define SLAPD_ARGSFILE "%RUNDIR%/slapd.args"
261 /* dn of the special "monitor" entry */
262 #define SLAPD_MONITOR_DN "cn=monitor"
263 /* dn of the special "config" entry */
264 #define SLAPD_CONFIG_DN "cn=config"
265 /* minimum max ids that a single index entry can map to in ldbm */
266 #define SLAPD_LDBM_MIN_MAXIDS 4000
268 #endif /* _CONFIG_H */