]> git.sur5r.net Git - openldap/blob - include/ldapconfig.h.edit
Fixed ldapconfig.h.edit/Make-template to generate ldapconfig.h correctly.
[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         /* default ldap host */
26 #define LDAPHOST        "localhost"
27         /* default place to start searching */
28 #define DEFAULT_BASE    "o=Your Organization Name, c=US"
29
30 #define DEFAULT_BINDIR          "%BINDIR%"
31 #define DEFAULT_SBINDIR         "%SBINDIR%"
32 #define DEFAULT_ETCDIR          "%ETCDIR%"
33 #define DEFAULT_LIBEXECDIR      "%LIBEXECDIR%"
34
35 /*********************************************************************
36  *                                                                   *
37  * You probably do not need to edit anything below this point        *
38  *                                                                   *
39  *********************************************************************/
40
41 /*
42  * SHARED DEFINITIONS - other things you can change
43  */
44         /* default attribute to use when sorting entries, NULL => sort by DN */
45 #define SORT_ATTR       NULL
46         /* default count of DN components to show in entry displays */
47 #define DEFAULT_RDNCOUNT        2
48         /* default config file locations */
49 #define FILTERFILE      "%ETCDIR%/ldapfilter.conf"
50 #define TEMPLATEFILE    "%ETCDIR%/ldaptemplates.conf"
51 #define SEARCHFILE      "%ETCDIR%/ldapsearchprefs.conf"
52 #define FRIENDLYFILE    "%ETCDIR%/ldapfriendly"
53
54 /*
55  * FINGER DEFINITIONS
56  */
57         /* who to bind as */
58 #define FINGER_BINDDN           NULL
59         /* where to search */
60 #define FINGER_BASE             DEFAULT_BASE
61         /* banner to print */
62 #define FINGER_BANNER           "X.500 Finger Service...\r\n"
63         /* who to report errors to */
64 #define FINGER_ERRORS           "your local system administrator"
65         /* what to say if no matches are found */
66 #define FINGER_NOMATCH          "Search failed to find anything.\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."
73 #define FINGER_NOEMAIL2 NULL
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              "%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 */
86 #define FINGER_UFN
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        
91
92 /*
93  * GO500 GOPHER GATEWAY DEFINITIONS
94  */
95         /* who to bind as */
96 #define GO500_BINDDN    NULL
97         /* where to search */
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   180
107         /* enable ufn support */
108 #define GO500_UFN
109         /*
110          * only set and uncomment this if your hostname() does not return
111          * a fully qualified hostname
112          */
113 /* #define GO500_HOSTNAME       "fully.qualified.hostname.here" */
114         /* number of DN components to show in entry displays */
115 #define GO500_RDNCOUNT          DEFAULT_RDNCOUNT        
116
117 /*
118  * GO500GW GOPHER GATEWAY DEFINITIONS
119  */
120         /* who to bind as */
121 #define GO500GW_BINDDN          NULL
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 */
129 #define GO500GW_UFN
130         /* attribute to use when sorting results */
131 #define GO500GW_SORT_ATTR       SORT_ATTR
132         /*
133          * only set and uncomment this if your hostname() does not return
134          * a fully qualified hostname
135          */
136 /* #define GO500GW_HOSTNAME     "fully.qualified.hostname.here" */
137         /* number of DN components to show in entry displays */
138 #define GO500GW_RDNCOUNT        DEFAULT_RDNCOUNT        
139
140 /*
141  * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
142  */
143         /* who to bind as */
144 #define RCPT500_BINDDN          NULL
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     "%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       1
160         /* enable ufn support */
161 #define RCPT500_UFN
162         /* number of DN components to show in entry displays */
163 #define RCPT500_RDNCOUNT        DEFAULT_RDNCOUNT        
164
165 /*
166  * LDAPSEARCH TOOL
167  */
168         /* who to bind as */
169 #define LDAPSEARCH_BINDDN       NULL
170         /* search base */
171 #define LDAPSEARCH_BASE         DEFAULT_BASE
172
173 /*
174  * LDAPMODIFY TOOL
175  */
176         /* who to bind as */
177 #define LDAPMODIFY_BINDDN       NULL
178         /* search base */
179 #define LDAPMODIFY_BASE         DEFAULT_BASE
180
181 /*
182  * LDAPDELETE TOOL
183  */
184         /* who to bind as */
185 #define LDAPDELETE_BINDDN       NULL
186         /* search base */
187 #define LDAPDELETE_BASE         DEFAULT_BASE
188
189 /*
190  * LDAPMODRDN TOOL
191  */
192         /* who to bind as */
193 #define LDAPMODRDN_BINDDN       NULL
194         /* search base */
195 #define LDAPMODRDN_BASE         DEFAULT_BASE
196
197 /*
198  * MAIL500 MAILER DEFINITIONS
199  */
200         /* who to bind as */
201 #define MAIL500_BINDDN          NULL
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        "%SENDMAIL%"
210
211 /*
212  * UD DEFINITIONS
213  */
214         /* ud configuration file */
215 #define UD_CONFIG_FILE          "%ETCDIR%/ud.conf"
216         /* default editor */
217 #define UD_DEFAULT_EDITOR       "%EDITOR%"
218         /* default bbasename of user config file */
219 #define UD_USER_CONFIG_FILE     ".udrc"
220         /* default user to bind as */
221 #define UD_BINDDN               NULL
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     ""
228         /* default base below which all groups live */
229 #define UD_WHERE_ALL_GROUPS_LIVE        ""
230
231 /*
232  * FAX500 DEFINITIONS
233  */
234         /* what to bind as */
235 #define FAX_BINDDN      NULL
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            "%SENDMAIL%"
244
245 /*
246  * RP500 DEFINITIONS
247  */
248         /* what to bind as */
249 #define RP_BINDDN       NULL
250         /* prefix to add to non-fully-qualified numbers */
251 #define RP_PHONEPREFIX  ""
252
253 /*
254  * SLAPD DEFINITIONS
255  */
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                   "%RUNDIR%/slapd.pid"
264         /* location of the slapd args file */
265 #define SLAPD_ARGSFILE                  "%RUNDIR%/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
272
273 #endif /* _LDAP_CONFIG_H */