]> git.sur5r.net Git - openldap/blob - include/ldapconfig.h.edit
lber.h: added #include <stddef.h> conditional on LBER_SIZE_T_DEFINED
[openldap] / include / ldapconfig.h.edit
1 /*
2  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted only
6  * as authorized by the OpenLDAP Public License.  A copy of this
7  * license is available at http://www.OpenLDAP.org/license.html or
8  * in file LICENSE in the top-level directory of the distribution.
9  */
10 /* Portions
11  * Copyright (c) 1994 Regents of the University of Michigan.
12  * All rights reserved.
13  *
14  * Redistribution and use in source and binary forms are permitted
15  * provided that this notice is preserved and that due credit is given
16  * to the University of Michigan at Ann Arbor. The name of the University
17  * may not be used to endorse or promote products derived from this
18  * software without specific prior written permission. This software
19  * is provided ``as is'' without express or implied warranty.
20  */
21
22 #ifndef _LDAP_CONFIG_H
23 #define _LDAP_CONFIG_H
24
25 /*
26  * config.h for LDAP -- edit this file to customize OpenLDAP behavior.
27  * NO platform-specific definitions should be placed in this file.
28  */
29
30 /*
31  * SHARED DEFINITIONS
32  * These are shared with Makefile and should not change via configure
33  */
34 #ifndef DIRSEP
35 #define DIRSEP          "/"
36 #endif
37 #define DEFAULT_BINDIR          "%BINDIR%"
38 #define DEFAULT_SBINDIR         "%SBINDIR%"
39 #define DEFAULT_DATADIR         "%DATADIR%"
40 #define DEFAULT_SYSCONFDIR      "%SYSCONFDIR%"
41 #define DEFAULT_LIBEXECDIR      "%LIBEXECDIR%"
42 #define DEFAULT_RUNDIR          "%RUNDIR%"
43
44 #define DEFAULT_EDITOR "%EDITOR%"
45
46 #define DEFAULT_LDAP_CONF_FILE "%SYSCONFDIR%/ldap.conf"
47 #define DEFAULT_LDAP_USERRC_FILE "ldaprc"
48 #define DEFAULT_LDAP_ENV_PREFIX "LDAP"
49
50
51 /*********************************************************************
52  *                                                                   *
53  * You probably do not need to edit anything below this point        *
54  *                                                                   *
55  *********************************************************************/
56
57 /*
58  * SHARED DEFINITIONS - other things you can change
59  */
60         /* default attribute to use when sorting entries, NULL => sort by DN */
61 #define SORT_ATTR       NULL
62         /* default count of DN components to show in entry displays */
63 #define DEFAULT_RDNCOUNT        2
64         /* default config file locations */
65 #define FILTERFILE      "%SYSCONFDIR%/ldapfilter.conf"
66 #define TEMPLATEFILE    "%SYSCONFDIR%/ldaptemplates.conf"
67 #define SEARCHFILE      "%SYSCONFDIR%/ldapsearchprefs.conf"
68 #define FRIENDLYFILE    "%DATADIR%/ldapfriendly"
69
70 /*
71  * FINGER DEFINITIONS
72  */
73         /* banner to print */
74 #define FINGER_BANNER           "OpenLDAP Finger Service...\r\n"
75         /* who to report errors to */
76 #define FINGER_ERRORS           "System Administrator"
77         /* what to say if no matches are found */
78 #define FINGER_NOMATCH          "Search failed to find anything.\r\n"
79         /* what to say if the service may be unavailable */
80 #define FINGER_UNAVAILABLE      \
81 "The directory service may be temporarily unavailable.\r\n\
82 Please try again later.\r\n"
83         /* printed if a match has no email address - for disptmp default */
84 #define FINGER_NOEMAIL1 "None registered in this service."
85 #define FINGER_NOEMAIL2 NULL
86 #define FINGER_NOEMAIL  { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
87         /* maximum number of matches returned */
88 #define FINGER_SIZELIMIT        50
89         /* max number of hits displayed in full before a list is presented */
90 #define FINGER_LISTLIMIT        1
91         /* what to exec for "finger @host" */
92 #define FINGER_CMD              "%FINGER%"
93         /* how to treat aliases when searching */
94 #define FINGER_DEREF            LDAP_DEREF_FINDING
95         /* attribute to use when sorting results */
96 #define FINGER_SORT_ATTR        SORT_ATTR
97         /* enable ufn support */
98 #define FINGER_UFN
99         /* timeout for searches */
100 #define FINGER_TIMEOUT          60
101         /* number of DN components to show in entry displays */
102 #define FINGER_RDNCOUNT         DEFAULT_RDNCOUNT        
103
104 /*
105  * GO500 GOPHER GATEWAY DEFINITIONS
106  */
107         /* port on which to listen */
108 #define GO500_PORT      5555
109         /* how to handle aliases */
110 #define GO500_DEREF     LDAP_DEREF_FINDING
111         /* attribute to use when sorting results */
112 #define GO500_SORT_ATTR SORT_ATTR
113         /* timeout for searches */
114 #define GO500_TIMEOUT   180
115         /* enable ufn support */
116 #define GO500_UFN
117         /*
118          * only set and uncomment this if your hostname() does not return
119          * a fully qualified hostname
120          */
121 /* #define GO500_HOSTNAME       "fully.qualified.hostname.here" */
122         /* number of DN components to show in entry displays */
123 #define GO500_RDNCOUNT          DEFAULT_RDNCOUNT        
124
125 /*
126  * GO500GW GOPHER GATEWAY DEFINITIONS
127  */
128         /* where the helpfile lives */
129 #define GO500GW_HELPFILE        "%DATADIR%/go500gw.help"
130         /* port on which to listen */
131 #define GO500GW_PORT            7777
132         /* timeout on all searches */
133 #define GO500GW_TIMEOUT         180
134         /* enable ufn support */
135 #define GO500GW_UFN
136         /* attribute to use when sorting results */
137 #define GO500GW_SORT_ATTR       SORT_ATTR
138         /*
139          * only set and uncomment this if your hostname() does not return
140          * a fully qualified hostname
141          */
142 /* #define GO500GW_HOSTNAME     "fully.qualified.hostname.here" */
143         /* number of DN components to show in entry displays */
144 #define GO500GW_RDNCOUNT        DEFAULT_RDNCOUNT        
145
146 /*
147  * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
148  */
149         /* where the helpfile lives */
150 #define RCPT500_HELPFILE        "%DATADIR%/rcpt500.help"
151         /* maximum number of matches returned */
152 #define RCPT500_SIZELIMIT       50
153         /* address replies will appear to come from */
154 #define RCPT500_FROM            "\"Directory Query Program\" <Dir-Query>"
155         /* command that will accept an RFC822 message text on standard
156            input, and send it.  sendmail -t does this nicely. */
157 #define RCPT500_PIPEMAILCMD     "%SENDMAIL% -t"
158         /* attribute to use when sorting results */
159 #define RCPT500_SORT_ATTR       SORT_ATTR
160         /* max number of hits displayed in full before a list is presented */
161 #define RCPT500_LISTLIMIT       1
162         /* enable ufn support */
163 #define RCPT500_UFN
164         /* number of DN components to show in entry displays */
165 #define RCPT500_RDNCOUNT        DEFAULT_RDNCOUNT        
166
167 /*
168  * MAIL500 MAILER DEFINITIONS
169  */
170         /* max number of ambiguous matches reported */
171 #define MAIL500_MAXAMBIGUOUS    10
172         /* max subscribers allowed (size limit when searching for them ) */
173 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
174         /* timeout for all searches */
175 #define MAIL500_TIMEOUT         180
176         /* sendmail location - mail500 needs to exec this */
177 #define MAIL500_SENDMAIL        "%SENDMAIL%"
178
179 /*
180  * UD DEFINITIONS
181  */
182         /* ud configuration file */
183 #define UD_CONFIG_FILE          "%SYSCONFDIR%/ud.conf"
184         /* default editor */
185 #define UD_DEFAULT_EDITOR       DEFAULT_EDITOR
186         /* default bbasename of user config file */
187 #define UD_USER_CONFIG_FILE     ".udrc"
188         /* default base where groups are created */
189 #define UD_WHERE_GROUPS_ARE_CREATED     ""
190         /* default base below which all groups live */
191 #define UD_WHERE_ALL_GROUPS_LIVE        ""
192
193 /*
194  * FAX500 DEFINITIONS
195  */
196         /* how long to wait for searches */
197 #define FAX_TIMEOUT             180
198         /* maximum number of ambiguous matches reported */
199 #define FAX_MAXAMBIGUOUS        10
200         /* maximum number of members allowed */
201 #define FAX_MAXMEMBERS          LDAP_NO_LIMIT
202         /* program to send mail */
203 #define FAX_SENDMAIL            "%SENDMAIL%"
204
205 /*
206  * RP500 DEFINITIONS
207  */
208         /* prefix to add to non-fully-qualified numbers */
209 #define RP_PHONEPREFIX  ""
210
211 /*
212  * SLAPD DEFINITIONS
213  */
214         /* location of the default slapd config file */
215 #define SLAPD_DEFAULT_CONFIGFILE        "%SYSCONFDIR%/slapd.conf"
216         /* default max deref depth for aliases */
217 #define SLAPD_DEFAULT_MAXDEREFDEPTH     15      
218         /* default sizelimit on number of entries from a search */
219 #define SLAPD_DEFAULT_SIZELIMIT         500
220         /* default timelimit to spend on a search */
221 #define SLAPD_DEFAULT_TIMELIMIT         3600
222         /* minimum max ids that a single index entry can map to in ldbm */
223 #define SLAPD_LDBM_MIN_MAXIDS           4000
224
225 /* the following DNs must be normalized and in uppercase! */
226         /* dn of the special "monitor" entry */
227 #define SLAPD_MONITOR_DN                "CN=MONITOR"
228         /* dn of the special "config" entry */
229 #define SLAPD_CONFIG_DN                 "CN=CONFIG"
230         /* dn of the special "schema" entry */
231 #define SLAPD_SCHEMA_DN                 "CN=SCHEMA"
232
233 #endif /* _LDAP_CONFIG_H */