]> git.sur5r.net Git - openldap/blob - include/ldapconfig.h.edit
Merged LDAPworldCurrent (P1-10,13,15,16,19-22)
[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 _CONFIG_H
14 #define _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 /*********************************************************************
31  *                                                                   *
32  * You probably do not need to edit anything below this point        *
33  *                                                                   *
34  *********************************************************************/
35
36 /*
37  * SHARED DEFINITIONS - other things you can change
38  */
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"
48
49 /*
50  * FINGER DEFINITIONS
51  */
52         /* who to bind as */
53 #define FINGER_BINDDN           NULL
54         /* where to search */
55 #define FINGER_BASE             DEFAULT_BASE
56         /* banner to print */
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              "/usr/ucb/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 */
81 #define FINGER_UFN
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        
86
87 /*
88  * GO500 GOPHER GATEWAY DEFINITIONS
89  */
90         /* who to bind as */
91 #define GO500_BINDDN    NULL
92         /* where to search */
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 */
103 #define GO500_UFN
104         /*
105          * only set and uncomment this if your hostname() does not return
106          * a fully qualified hostname
107          */
108 /* #define GO500_HOSTNAME       "fully.qualified.hostname.here" */
109         /* number of DN components to show in entry displays */
110 #define GO500_RDNCOUNT          DEFAULT_RDNCOUNT        
111
112 /*
113  * GO500GW GOPHER GATEWAY DEFINITIONS
114  */
115         /* who to bind as */
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 */
124 #define GO500GW_UFN
125         /* attribute to use when sorting results */
126 #define GO500GW_SORT_ATTR       SORT_ATTR
127         /*
128          * only set and uncomment this if your hostname() does not return
129          * a fully qualified hostname
130          */
131 /* #define GO500GW_HOSTNAME     "fully.qualified.hostname.here" */
132         /* number of DN components to show in entry displays */
133 #define GO500GW_RDNCOUNT        DEFAULT_RDNCOUNT        
134
135 /*
136  * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
137  */
138         /* who to bind as */
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     "/usr/lib/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 */
156 #define RCPT500_UFN
157         /* number of DN components to show in entry displays */
158 #define RCPT500_RDNCOUNT        DEFAULT_RDNCOUNT        
159
160 /*
161  * LDAPSEARCH TOOL
162  */
163         /* who to bind as */
164 #define LDAPSEARCH_BINDDN       NULL
165         /* search base */
166 #define LDAPSEARCH_BASE         DEFAULT_BASE
167
168 /*
169  * LDAPMODIFY TOOL
170  */
171         /* who to bind as */
172 #define LDAPMODIFY_BINDDN       NULL
173         /* search base */
174 #define LDAPMODIFY_BASE         DEFAULT_BASE
175
176 /*
177  * LDAPDELETE TOOL
178  */
179         /* who to bind as */
180 #define LDAPDELETE_BINDDN       NULL
181         /* search base */
182 #define LDAPDELETE_BASE         DEFAULT_BASE
183
184 /*
185  * LDAPMODRDN TOOL
186  */
187         /* who to bind as */
188 #define LDAPMODRDN_BINDDN       NULL
189         /* search base */
190 #define LDAPMODRDN_BASE         DEFAULT_BASE
191
192 /*
193  * MAIL500 MAILER DEFINITIONS
194  */
195         /* who to bind as */
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        "/usr/lib/sendmail"
205
206 /*
207  * UD DEFINITIONS
208  */
209         /* ud configuration file */
210 #define UD_CONFIG_FILE          "%ETCDIR%/ud.conf"
211         /* default editor */
212 #define UD_DEFAULT_EDITOR       "/usr/ucb/vi"
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        ""
225
226 /*
227  * FAX500 DEFINITIONS
228  */
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            "/usr/lib/sendmail"
239
240 /*
241  * RP500 DEFINITIONS
242  */
243         /* what to bind as */
244 #define RP_BINDDN       NULL
245         /* prefix to add to non-fully-qualified numbers */
246 #define RP_PHONEPREFIX  ""
247
248 /*
249  * SLAPD DEFINITIONS
250  */
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                   "%ETCDIR%/slapd.pid"
259         /* location of the slapd args file */
260 #define SLAPD_ARGSFILE                  "%ETCDIR%/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
267
268 #endif /* _CONFIG_H */