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