]> git.sur5r.net Git - openldap/blob - include/ldapconfig.h.edit
Add NO_THREADS fix from tih@nhh.no
[openldap] / include / ldapconfig.h.edit
1 /*
2  * Copyright (c) 1994 Regents of the University of Michigan.
3  * All rights reserved.
4  *
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.
11  */
12
13 #ifndef _LDAP_CONFIG_H
14 #define _LDAP_CONFIG_H
15
16 /*
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.
20  */
21
22 /*
23  * SHARED DEFINITIONS - things you should change
24  */
25 #define DEFAULT_BINDIR          "%BINDIR%"
26 #define DEFAULT_SBINDIR         "%SBINDIR%"
27 #define DEFAULT_ETCDIR          "%ETCDIR%"
28 #define DEFAULT_LIBEXECDIR      "%LIBEXECDIR%"
29
30 /* default ldap host */
31 #define LDAPHOST        "localhost"
32
33 #define DEFAULT_LDAPHOST_FILE "%ETCDIR%/ldaphost"
34 /* default place to start searching */
35 #define DEFAULT_BASE    "o=Your Organization Name, c=US"
36 #define DEFAULT_BASE_FILE "%ETCDIR%/ldapbase"
37
38 /*
39  * default binddn and creditials
40  *  use files, make sure they are not generally readable
41  */
42 #define DEFAULT_BINDDN          NULL
43 #define DEFAULT_BINDDN_FILE "%ETCDIR%/ldapbinddn"
44
45 #define DEFAULT_BIND_CRED       NULL
46 #define DEFAULT_BIND_CRED_FILE "%ETCDIR%/ldapbindcred"
47
48 /*********************************************************************
49  *                                                                   *
50  * You probably do not need to edit anything below this point        *
51  *                                                                   *
52  *********************************************************************/
53
54 /*
55  * SHARED DEFINITIONS - other things you can change
56  */
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      "%ETCDIR%/ldapfilter.conf"
63 #define TEMPLATEFILE    "%ETCDIR%/ldaptemplates.conf"
64 #define SEARCHFILE      "%ETCDIR%/ldapsearchprefs.conf"
65 #define FRIENDLYFILE    "%ETCDIR%/ldapfriendly"
66
67 /*
68  * FINGER DEFINITIONS
69  */
70         /* who to bind as */
71 #define FINGER_BINDDN                   NULL
72 #define FINGER_BIND_CRED                NULL
73         /* where to search */
74 #define FINGER_BASE                             DEFAULT_BASE
75         /* banner to print */
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 */
100 #define FINGER_UFN
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        
105
106 /*
107  * GO500 GOPHER GATEWAY DEFINITIONS
108  */
109         /* who to bind as */
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 */
123 #define GO500_UFN
124         /*
125          * only set and uncomment this if your hostname() does not return
126          * a fully qualified hostname
127          */
128 /* #define GO500_HOSTNAME       "fully.qualified.hostname.here" */
129         /* number of DN components to show in entry displays */
130 #define GO500_RDNCOUNT          DEFAULT_RDNCOUNT        
131
132 /*
133  * GO500GW GOPHER GATEWAY DEFINITIONS
134  */
135         /* who to bind as */
136 #define GO500GW_BINDDN                  NULL
137 #define GO500GW_BIND_CRED               NULL
138         /* where the helpfile lives */
139 #define GO500GW_HELPFILE        "%ETCDIR%/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 */
145 #define GO500GW_UFN
146         /* attribute to use when sorting results */
147 #define GO500GW_SORT_ATTR       SORT_ATTR
148         /*
149          * only set and uncomment this if your hostname() does not return
150          * a fully qualified hostname
151          */
152 /* #define GO500GW_HOSTNAME     "fully.qualified.hostname.here" */
153         /* number of DN components to show in entry displays */
154 #define GO500GW_RDNCOUNT        DEFAULT_RDNCOUNT        
155
156 /*
157  * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
158  */
159         /* who to bind as */
160 #define RCPT500_BINDDN          NULL
161 #define RCPT500_BIND_CRED       NULL
162         /* where the helpfile lives */
163 #define RCPT500_HELPFILE        "%ETCDIR%/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 */
178 #define RCPT500_UFN
179         /* number of DN components to show in entry displays */
180 #define RCPT500_RDNCOUNT        DEFAULT_RDNCOUNT        
181
182 /*
183  * LDAPSEARCH TOOL
184  */
185         /* who to bind as */
186 #define LDAPSEARCH_BINDDN               NULL
187 #define LDAPSEARCH_BIND_CRED    NULL
188         /* search base */
189 #define LDAPSEARCH_BASE         DEFAULT_BASE
190
191 /*
192  * LDAPMODIFY TOOL
193  */
194         /* who to bind as */
195 #define LDAPMODIFY_BINDDN               NULL
196 #define LDAPMODIFY_BIND_CRED    NULL
197         /* search base */
198 #define LDAPMODIFY_BASE         DEFAULT_BASE
199
200 /*
201  * LDAPDELETE TOOL
202  */
203         /* who to bind as */
204 #define LDAPDELETE_BINDDN               NULL
205 #define LDAPDELETE_BIND_CRED    NULL
206         /* search base */
207 #define LDAPDELETE_BASE         DEFAULT_BASE
208
209 /*
210  * LDAPMODRDN TOOL
211  */
212         /* who to bind as */
213 #define LDAPMODRDN_BINDDN               NULL
214 #define LDAPMODRDN_BIND_CRED    NULL
215         /* search base */
216 #define LDAPMODRDN_BASE         DEFAULT_BASE
217
218 /*
219  * MAIL500 MAILER DEFINITIONS
220  */
221         /* who to bind as */
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%"
232
233 /*
234  * UD DEFINITIONS
235  */
236         /* ud configuration file */
237 #define UD_CONFIG_FILE          "%ETCDIR%/ud.conf"
238         /* default editor */
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        ""
252
253 /*
254  * FAX500 DEFINITIONS
255  */
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%"
269
270 /*
271  * RP500 DEFINITIONS
272  */
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
278
279         /* prefix to add to non-fully-qualified numbers */
280 #define RP_PHONEPREFIX  ""
281
282 /*
283  * SLAPD DEFINITIONS
284  */
285         /* location of the default slapd config file */
286 #define SLAPD_DEFAULT_CONFIGFILE        "%ETCDIR%/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
301
302 #endif /* _LDAP_CONFIG_H */