]> git.sur5r.net Git - openldap/blob - include/ldap_defaults.h
Friendly name removal
[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
57 /*
58  * FINGER DEFINITIONS
59  */
60         /* banner to print */
61 #define FINGER_BANNER           "OpenLDAP Finger Service...\r\n"
62         /* who to report errors to */
63 #define FINGER_ERRORS           "System Administrator"
64         /* what to say if no matches are found */
65 #define FINGER_NOMATCH          "Search failed to find anything.\r\n"
66         /* what to say if the service may be unavailable */
67 #define FINGER_UNAVAILABLE      \
68 "The directory service may be temporarily unavailable.\r\n\
69 Please try again later.\r\n"
70         /* printed if a match has no email address - for disptmp default */
71 #define FINGER_NOEMAIL1 "None registered in this service."
72 #define FINGER_NOEMAIL2 NULL
73 #define FINGER_NOEMAIL  { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
74         /* maximum number of matches returned */
75 #define FINGER_SIZELIMIT        50
76         /* max number of hits displayed in full before a list is presented */
77 #define FINGER_LISTLIMIT        1
78         /* what to exec for "finger @host" */
79 #define FINGER_CMD              LDAP_FINGER
80         /* how to treat aliases when searching */
81 #define FINGER_DEREF            LDAP_DEREF_FINDING
82         /* attribute to use when sorting results */
83 #define FINGER_SORT_ATTR        SORT_ATTR
84 #ifdef LDAP_UFN
85         /* enable ufn support */
86 #define FINGER_UFN
87 #endif
88         /* timeout for searches */
89 #define FINGER_TIMEOUT          60
90         /* number of DN components to show in entry displays */
91 #define FINGER_RDNCOUNT         DEFAULT_RDNCOUNT        
92
93 /*
94  * GO500 GOPHER GATEWAY DEFINITIONS
95  */
96         /* port on which to listen */
97 #define GO500_PORT      5555
98         /* how to handle aliases */
99 #define GO500_DEREF     LDAP_DEREF_FINDING
100         /* attribute to use when sorting results */
101 #define GO500_SORT_ATTR SORT_ATTR
102         /* timeout for searches */
103 #define GO500_TIMEOUT   180
104 #ifdef LDAP_UFN
105         /* enable ufn support */
106 #define GO500_UFN
107 #endif
108         /*
109          * only set and uncomment this if your hostname() does not return
110          * a fully qualified hostname
111          */
112 /* #define GO500_HOSTNAME       "fully.qualified.hostname.here" */
113         /* number of DN components to show in entry displays */
114 #define GO500_RDNCOUNT          DEFAULT_RDNCOUNT        
115
116 /*
117  * GO500GW GOPHER GATEWAY DEFINITIONS
118  */
119         /* where the helpfile lives */
120 #define GO500GW_HELPFILE        LDAP_DATADIR LDAP_DIRSEP "go500gw.help"
121         /* port on which to listen */
122 #define GO500GW_PORT            7777
123         /* timeout on all searches */
124 #define GO500GW_TIMEOUT         180
125 #ifdef LDAP_UFN
126         /* enable ufn support */
127 #define GO500GW_UFN
128 #endif
129         /* attribute to use when sorting results */
130 #define GO500GW_SORT_ATTR       SORT_ATTR
131         /*
132          * only set and uncomment this if your hostname() does not return
133          * a fully qualified hostname
134          */
135 /* #define GO500GW_HOSTNAME     "fully.qualified.hostname.here" */
136         /* number of DN components to show in entry displays */
137 #define GO500GW_RDNCOUNT        DEFAULT_RDNCOUNT        
138
139 /*
140  * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
141  */
142         /* where the helpfile lives */
143 #define RCPT500_HELPFILE        LDAP_DATADIR LDAP_DIRSEP "rcpt500.help"
144         /* maximum number of matches returned */
145 #define RCPT500_SIZELIMIT       50
146         /* address replies will appear to come from */
147 #define RCPT500_FROM            "\"Directory Query Program\" <Dir-Query>"
148         /* command that will accept an RFC822 message text on standard
149            input, and send it.  sendmail -t does this nicely. */
150 #define RCPT500_PIPEMAILCMD     LDAP_SENDMAIL " -t"
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 #ifdef LDAP_UFN
156         /* enable ufn support */
157 #define RCPT500_UFN
158 #endif
159         /* number of DN components to show in entry displays */
160 #define RCPT500_RDNCOUNT        DEFAULT_RDNCOUNT        
161
162 /*
163  * MAIL500 MAILER DEFINITIONS
164  */
165         /* max number of ambiguous matches reported */
166 #define MAIL500_MAXAMBIGUOUS    10
167         /* max subscribers allowed (size limit when searching for them ) */
168 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
169         /* timeout for all searches */
170 #define MAIL500_TIMEOUT         180
171         /* sendmail location - mail500 needs to exec this */
172 #define MAIL500_SENDMAIL        LDAP_SENDMAIL
173
174 /*
175  * UD DEFINITIONS
176  */
177         /* ud configuration file */
178 #define UD_CONFIG_FILE          LDAP_SYSCONFDIR LDAP_DIRSEP "ud.conf"
179         /* default editor */
180 #define UD_DEFAULT_EDITOR       LDAP_EDITOR
181         /* default bbasename of user config file */
182 #define UD_USER_CONFIG_FILE     ".udrc"
183         /* default base where groups are created */
184 #define UD_WHERE_GROUPS_ARE_CREATED     ""
185         /* default base below which all groups live */
186 #define UD_WHERE_ALL_GROUPS_LIVE        ""
187
188 /*
189  * FAX500 DEFINITIONS
190  */
191         /* how long to wait for searches */
192 #define FAX_TIMEOUT             180
193         /* maximum number of ambiguous matches reported */
194 #define FAX_MAXAMBIGUOUS        10
195         /* maximum number of members allowed */
196 #define FAX_MAXMEMBERS          LDAP_NO_LIMIT
197         /* program to send mail */
198 #define FAX_SENDMAIL            LDAP_SENDMAIL
199
200 /*
201  * RP500 DEFINITIONS
202  */
203         /* prefix to add to non-fully-qualified numbers */
204 #define RP_PHONEPREFIX  ""
205
206 /*
207  * SLAPD DEFINITIONS
208  */
209         /* location of the default slapd config file */
210 #define SLAPD_DEFAULT_CONFIGFILE        LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
211 #define SLAPD_DEFAULT_UCDATA            LDAP_DATADIR LDAP_DIRSEP "ucdata"
212         /* default max deref depth for aliases */
213 #define SLAPD_DEFAULT_MAXDEREFDEPTH     15      
214         /* default sizelimit on number of entries from a search */
215 #define SLAPD_DEFAULT_SIZELIMIT         500
216         /* default timelimit to spend on a search */
217 #define SLAPD_DEFAULT_TIMELIMIT         3600
218         /* minimum max ids that a single index entry can map to in ldbm */
219 #define SLAPD_LDBM_MIN_MAXIDS           (8192-4)
220
221 /* the following DNs must be normalized! */
222         /* dn of the default subschema subentry */
223 #define SLAPD_SCHEMA_DN                 "cn=Subschema"
224         /* dn of the default "monitor" subentry */
225 #define SLAPD_MONITOR_DN                "cn=Monitor"
226 #define SLAPD_MONITOR_NDN               "CN=MONITOR"
227 #if 0
228         /* dn of the default "config" subentry */
229 #define SLAPD_CONFIG_DN                 "cn=Config"
230 #endif
231
232 #endif /* _LDAP_CONFIG_H */