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 "ldap.itd.umich.edu"
27 /* default place to start searching */
28 #define DEFAULT_BASE "o=University of Michigan, 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 "cn=finger, ou=Miscellaneous Servers, o=University of Michigan, c=US"
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 "x500@umich.edu"
60 /* what to say if no matches are found */
61 #define FINGER_NOMATCH \
62 "Search failed to find anything. Currently, this service contains\r\n\
63 information only on University of Michigan faculty, staff, and students.\r\n\
64 Other likely places to finger are:\r\n\
66 azure.engin.umich.edu\r\n"
67 /* what to say if the service may be unavailable */
68 #define FINGER_UNAVAILABLE \
69 "The X.500 service may be temporarily unavailable.\r\n\
70 Please try again later.\r\n"
71 /* printed if a match has no email address - for disptmp default */
72 #define FINGER_NOEMAIL1 "None registered in this service. Try fingering at:"
73 #define FINGER_NOEMAIL2 "um.cc.umich.edu or azure.engin.umich.edu"
74 #define FINGER_NOEMAIL { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
75 /* maximum number of matches returned */
76 #define FINGER_SIZELIMIT 50
77 /* max number of hits displayed in full before a list is presented */
78 #define FINGER_LISTLIMIT 1
79 /* what to exec for "finger @host" */
80 #define FINGER_CMD "/usr/ucb/finger"
81 /* how to treat aliases when searching */
82 #define FINGER_DEREF LDAP_DEREF_FINDING
83 /* attribute to use when sorting results */
84 #define FINGER_SORT_ATTR SORT_ATTR
85 /* enable ufn support */
87 /* timeout for searches */
88 #define FINGER_TIMEOUT 60
89 /* number of DN components to show in entry displays */
90 #define FINGER_RDNCOUNT DEFAULT_RDNCOUNT
93 * GO500 GOPHER GATEWAY DEFINITIONS
96 #define GO500_BINDDN "cn=go500, ou=Miscellaneous Servers, o=University of Michigan, c=US"
98 #define GO500_BASE DEFAULT_BASE
99 /* port on which to listen */
100 #define GO500_PORT 5555
101 /* how to handle aliases */
102 #define GO500_DEREF LDAP_DEREF_FINDING
103 /* attribute to use when sorting results */
104 #define GO500_SORT_ATTR SORT_ATTR
105 /* timeout for searches */
106 #define GO500_TIMEOUT 60
107 /* enable ufn support */
110 * only set and uncomment this if your hostname() does not return
111 * a fully qualified hostname
113 /* #define GO500_HOSTNAME "fully.qualified.hostname.here" */
114 /* number of DN components to show in entry displays */
115 #define GO500_RDNCOUNT DEFAULT_RDNCOUNT
118 * GO500GW GOPHER GATEWAY DEFINITIONS
121 #define GO500GW_BINDDN "cn=go500gw, ou=Miscellaneous Servers, o=University of Michigan, c=US"
122 /* where the helpfile lives */
123 #define GO500GW_HELPFILE "%ETCDIR%/go500gw.help"
124 /* port on which to listen */
125 #define GO500GW_PORT 7777
126 /* timeout on all searches */
127 #define GO500GW_TIMEOUT 180
128 /* enable ufn support */
130 /* attribute to use when sorting results */
131 #define GO500GW_SORT_ATTR SORT_ATTR
133 * only set and uncomment this if your hostname() does not return
134 * a fully qualified hostname
136 /* #define GO500GW_HOSTNAME "fully.qualified.hostname.here" */
137 /* number of DN components to show in entry displays */
138 #define GO500GW_RDNCOUNT DEFAULT_RDNCOUNT
141 * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
144 #define RCPT500_BINDDN "cn=Rcpt500, ou=Miscellaneous Servers, o=University of Michigan, c=US"
145 /* where the helpfile lives */
146 #define RCPT500_HELPFILE "%ETCDIR%/rcpt500.help"
147 /* maximum number of matches returned */
148 #define RCPT500_SIZELIMIT 50
149 /* address replies will appear to come from */
150 #define RCPT500_FROM "\"X.500 Query Program\" <X500-Query>"
151 /* command that will accept an RFC822 message text on standard
152 input, and send it. sendmail -t does this nicely. */
153 #define RCPT500_PIPEMAILCMD "/usr/lib/sendmail -t"
154 /* where to search */
155 #define RCPT500_BASE DEFAULT_BASE
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 3
160 /* enable ufn support */
162 /* number of DN components to show in entry displays */
163 #define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT
169 #define LDAPSEARCH_BINDDN "cn=LDAP Search Tool, ou=Miscellaneous Servers, o=University of Michigan, c=US"
171 #define LDAPSEARCH_BASE DEFAULT_BASE
177 #define LDAPMODIFY_BINDDN "cn=Manager, o=University of Michigan, c=US"
179 #define LDAPMODIFY_BASE DEFAULT_BASE
185 #define LDAPDELETE_BINDDN "cn=Manager, o=University of Michigan, c=US"
187 #define LDAPDELETE_BASE DEFAULT_BASE
193 #define LDAPMODRDN_BINDDN "cn=Manager, o=University of Michigan, c=US"
195 #define LDAPMODRDN_BASE DEFAULT_BASE
198 * MAIL500 MAILER DEFINITIONS
201 #define MAIL500_BINDDN "cn=mail500, ou=Miscellaneous Servers, o=University of Michigan, c=US"
202 /* max number of ambiguous matches reported */
203 #define MAIL500_MAXAMBIGUOUS 10
204 /* max subscribers allowed (size limit when searching for them ) */
205 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
206 /* timeout for all searches */
207 #define MAIL500_TIMEOUT 180
208 /* sendmail location - mail500 needs to exec this */
209 #define MAIL500_SENDMAIL "/usr/lib/sendmail"
214 /* ud configuration file */
215 #define UD_CONFIG_FILE "%ETCDIR%/ud.conf"
217 #define UD_DEFAULT_EDITOR "/usr/ucb/vi"
218 /* default bbasename of user config file */
219 #define UD_USER_CONFIG_FILE ".udrc"
220 /* default user to bind as */
221 #define UD_BINDDN "cn=ud, ou=Miscellaneous Servers, o=University of Michigan, c=US"
222 /* default password to bind with */
223 #define UD_PASSWD NULL
224 /* default search base */
225 #define UD_BASE DEFAULT_BASE
226 /* default base where groups are created */
227 #define UD_WHERE_GROUPS_ARE_CREATED "ou=User Groups, ou=Groups, o=University of Michigan, c=US"
228 /* default base below which all groups live */
229 #define UD_WHERE_ALL_GROUPS_LIVE "ou=Groups, o=University of Michigan, c=US"
234 /* what to bind as */
235 #define FAX_BINDDN "cn=mail500, ou=Miscellaneous Servers, o=University of Michigan, c=US"
236 /* how long to wait for searches */
237 #define FAX_TIMEOUT 180
238 /* maximum number of ambiguous matches reported */
239 #define FAX_MAXAMBIGUOUS 10
240 /* maximum number of members allowed */
241 #define FAX_MAXMEMBERS LDAP_NO_LIMIT
242 /* program to send mail */
243 #define FAX_SENDMAIL "/usr/lib/sendmail"
248 /* what to bind as */
249 #define RP_BINDDN "cn=rp500, ou=Miscellaneous Servers, o=University of Michigan, c=US"
250 /* prefix to add to non-fully-qualified numbers */
251 #define RP_PHONEPREFIX "1313"
256 /* location of the default slapd config file */
257 #define SLAPD_DEFAULT_CONFIGFILE "%ETCDIR%/slapd.conf"
258 /* default sizelimit on number of entries from a search */
259 #define SLAPD_DEFAULT_SIZELIMIT 500
260 /* default timelimit to spend on a search */
261 #define SLAPD_DEFAULT_TIMELIMIT 3600
262 /* location of the slapd pid file */
263 #define SLAPD_PIDFILE "%ETCDIR%/slapd.pid"
264 /* location of the slapd args file */
265 #define SLAPD_ARGSFILE "%ETCDIR%/slapd.args"
266 /* dn of the special "monitor" entry */
267 #define SLAPD_MONITOR_DN "cn=monitor"
268 /* dn of the special "config" entry */
269 #define SLAPD_CONFIG_DN "cn=config"
270 /* minimum max ids that a single index entry can map to in ldbm */
271 #define SLAPD_LDBM_MIN_MAXIDS 4000
273 #endif /* _CONFIG_H */