]> git.sur5r.net Git - openldap/blob - include/ldap_defaults.h
This is the skeleton of back-monitor, the slapd monitoring backend.
[openldap] / include / ldap_defaults.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted only as authorized by the OpenLDAP
8  * Public License.  A copy of this license is available at
9  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
10  * top-level directory of the distribution.
11  */
12 /* Portions
13  * Copyright (c) 1994 Regents of the University of Michigan.
14  * All rights reserved.
15  *
16  * Redistribution and use in source and binary forms are permitted
17  * provided that this notice is preserved and that due credit is given
18  * to the University of Michigan at Ann Arbor. The name of the University
19  * may not be used to endorse or promote products derived from this
20  * software without specific prior written permission. This software
21  * is provided ``as is'' without express or implied warranty.
22  */
23
24 /*
25  * This file controls defaults for OpenLDAP package.
26  * You probably do not need to edit the defaults provided by this file.
27  */
28
29 #ifndef _LDAP_DEFAULTS_H
30 #define _LDAP_DEFAULTS_H
31
32
33 #include <ldap_config.h>
34
35 #define LDAP_CONF_FILE   LDAP_SYSCONFDIR LDAP_DIRSEP "ldap.conf"
36 #define LDAP_USERRC_FILE "ldaprc"
37 #define LDAP_ENV_PREFIX "LDAP"
38
39 /* default ldapi:// socket */
40 #define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "ldapi"
41
42 /* default file: URI prefix */
43 #define LDAP_FILE_URI_PREFIX "file://" LDAP_TMPDIR LDAP_DIRSEP
44
45 /*
46  * SHARED DEFINITIONS - other things you can change
47  */
48         /* default attribute to use when sorting entries, NULL => sort by DN */
49 #define SORT_ATTR       NULL
50         /* default count of DN components to show in entry displays */
51 #define DEFAULT_RDNCOUNT        2
52         /* default config file locations */
53 #define FILTERFILE      LDAP_SYSCONFDIR LDAP_DIRSEP "ldapfilter.conf"
54 #define TEMPLATEFILE    LDAP_SYSCONFDIR LDAP_DIRSEP "ldaptemplates.conf"
55 #define SEARCHFILE      LDAP_SYSCONFDIR LDAP_DIRSEP "ldapsearchprefs.conf"
56 #define FRIENDLYFILE    LDAP_DATADIR LDAP_DIRSEP "ldapfriendly"
57
58 /*
59  * FINGER DEFINITIONS
60  */
61         /* banner to print */
62 #define FINGER_BANNER           "OpenLDAP Finger Service...\r\n"
63         /* who to report errors to */
64 #define FINGER_ERRORS           "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 directory 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              LDAP_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 #ifdef LDAP_UFN
86         /* enable ufn support */
87 #define FINGER_UFN
88 #endif
89         /* timeout for searches */
90 #define FINGER_TIMEOUT          60
91         /* number of DN components to show in entry displays */
92 #define FINGER_RDNCOUNT         DEFAULT_RDNCOUNT        
93
94 /*
95  * GO500 GOPHER GATEWAY DEFINITIONS
96  */
97         /* port on which to listen */
98 #define GO500_PORT      5555
99         /* how to handle aliases */
100 #define GO500_DEREF     LDAP_DEREF_FINDING
101         /* attribute to use when sorting results */
102 #define GO500_SORT_ATTR SORT_ATTR
103         /* timeout for searches */
104 #define GO500_TIMEOUT   180
105 #ifdef LDAP_UFN
106         /* enable ufn support */
107 #define GO500_UFN
108 #endif
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         /* where the helpfile lives */
121 #define GO500GW_HELPFILE        LDAP_DATADIR LDAP_DIRSEP "go500gw.help"
122         /* port on which to listen */
123 #define GO500GW_PORT            7777
124         /* timeout on all searches */
125 #define GO500GW_TIMEOUT         180
126 #ifdef LDAP_UFN
127         /* enable ufn support */
128 #define GO500GW_UFN
129 #endif
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         /* where the helpfile lives */
144 #define RCPT500_HELPFILE        LDAP_DATADIR LDAP_DIRSEP "rcpt500.help"
145         /* maximum number of matches returned */
146 #define RCPT500_SIZELIMIT       50
147         /* address replies will appear to come from */
148 #define RCPT500_FROM            "\"Directory Query Program\" <Dir-Query>"
149         /* command that will accept an RFC822 message text on standard
150            input, and send it.  sendmail -t does this nicely. */
151 #define RCPT500_PIPEMAILCMD     LDAP_SENDMAIL " -t"
152         /* attribute to use when sorting results */
153 #define RCPT500_SORT_ATTR       SORT_ATTR
154         /* max number of hits displayed in full before a list is presented */
155 #define RCPT500_LISTLIMIT       1
156 #ifdef LDAP_UFN
157         /* enable ufn support */
158 #define RCPT500_UFN
159 #endif
160         /* number of DN components to show in entry displays */
161 #define RCPT500_RDNCOUNT        DEFAULT_RDNCOUNT        
162
163 /*
164  * MAIL500 MAILER DEFINITIONS
165  */
166         /* max number of ambiguous matches reported */
167 #define MAIL500_MAXAMBIGUOUS    10
168         /* max subscribers allowed (size limit when searching for them ) */
169 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
170         /* timeout for all searches */
171 #define MAIL500_TIMEOUT         180
172         /* sendmail location - mail500 needs to exec this */
173 #define MAIL500_SENDMAIL        LDAP_SENDMAIL
174
175 /*
176  * UD DEFINITIONS
177  */
178         /* ud configuration file */
179 #define UD_CONFIG_FILE          LDAP_SYSCONFDIR LDAP_DIRSEP "ud.conf"
180         /* default editor */
181 #define UD_DEFAULT_EDITOR       LDAP_EDITOR
182         /* default bbasename of user config file */
183 #define UD_USER_CONFIG_FILE     ".udrc"
184         /* default base where groups are created */
185 #define UD_WHERE_GROUPS_ARE_CREATED     ""
186         /* default base below which all groups live */
187 #define UD_WHERE_ALL_GROUPS_LIVE        ""
188
189 /*
190  * FAX500 DEFINITIONS
191  */
192         /* how long to wait for searches */
193 #define FAX_TIMEOUT             180
194         /* maximum number of ambiguous matches reported */
195 #define FAX_MAXAMBIGUOUS        10
196         /* maximum number of members allowed */
197 #define FAX_MAXMEMBERS          LDAP_NO_LIMIT
198         /* program to send mail */
199 #define FAX_SENDMAIL            LDAP_SENDMAIL
200
201 /*
202  * RP500 DEFINITIONS
203  */
204         /* prefix to add to non-fully-qualified numbers */
205 #define RP_PHONEPREFIX  ""
206
207 /*
208  * SLAPD DEFINITIONS
209  */
210         /* location of the default slapd config file */
211 #define SLAPD_DEFAULT_CONFIGFILE        LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
212 #define SLAPD_DEFAULT_UCDATA            LDAP_DATADIR LDAP_DIRSEP "ucdata"
213         /* default max deref depth for aliases */
214 #define SLAPD_DEFAULT_MAXDEREFDEPTH     15      
215         /* default sizelimit on number of entries from a search */
216 #define SLAPD_DEFAULT_SIZELIMIT         500
217         /* default timelimit to spend on a search */
218 #define SLAPD_DEFAULT_TIMELIMIT         3600
219         /* minimum max ids that a single index entry can map to in ldbm */
220 #define SLAPD_LDBM_MIN_MAXIDS           (8192-4)
221
222 /* the following DNs must be normalized! */
223         /* dn of the default subschema subentry */
224 #define SLAPD_SCHEMA_DN                 "cn=Subschema"
225         /* dn of the default "monitor" subentry */
226 #define SLAPD_MONITOR_DN                "cn=Monitor"
227 #define SLAPD_MONITOR_NDN               "CN=MONITOR"
228 #if 0
229         /* dn of the default "config" subentry */
230 #define SLAPD_CONFIG_DN                 "cn=Config"
231 #endif
232
233 #endif /* _LDAP_CONFIG_H */