]> git.sur5r.net Git - openldap/blob - include/ldap_defaults.h
Modify ldapsearch(1) significantly. Now handles LDAPv3 search
[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 /* default ldapi:// socket */
39 #define LDAPI_SOCK LDAP_TMPDIR LDAP_DIRSEP ".ldapi_sock"
40
41 /* default file: URI prefix */
42 #define LDAP_FILE_URI_PREFIX "file://" LDAP_TMPDIR LDAP_DIRSEP
43
44 /*
45  * SHARED DEFINITIONS - other things you can change
46  */
47         /* default attribute to use when sorting entries, NULL => sort by DN */
48 #define SORT_ATTR       NULL
49         /* default count of DN components to show in entry displays */
50 #define DEFAULT_RDNCOUNT        2
51         /* default config file locations */
52 #define FILTERFILE      LDAP_SYSCONFDIR LDAP_DIRSEP "ldapfilter.conf"
53 #define TEMPLATEFILE    LDAP_SYSCONFDIR LDAP_DIRSEP "ldaptemplates.conf"
54 #define SEARCHFILE      LDAP_SYSCONFDIR LDAP_DIRSEP "ldapsearchprefs.conf"
55 #define FRIENDLYFILE    LDAP_DATADIR LDAP_DIRSEP "ldapfriendly"
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         /* enable ufn support */
85 #define FINGER_UFN
86         /* timeout for searches */
87 #define FINGER_TIMEOUT          60
88         /* number of DN components to show in entry displays */
89 #define FINGER_RDNCOUNT         DEFAULT_RDNCOUNT        
90
91 /*
92  * GO500 GOPHER GATEWAY DEFINITIONS
93  */
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         /* where the helpfile lives */
116 #define GO500GW_HELPFILE        LDAP_DATADIR LDAP_DIRSEP "go500gw.help"
117         /* port on which to listen */
118 #define GO500GW_PORT            7777
119         /* timeout on all searches */
120 #define GO500GW_TIMEOUT         180
121         /* enable ufn support */
122 #define GO500GW_UFN
123         /* attribute to use when sorting results */
124 #define GO500GW_SORT_ATTR       SORT_ATTR
125         /*
126          * only set and uncomment this if your hostname() does not return
127          * a fully qualified hostname
128          */
129 /* #define GO500GW_HOSTNAME     "fully.qualified.hostname.here" */
130         /* number of DN components to show in entry displays */
131 #define GO500GW_RDNCOUNT        DEFAULT_RDNCOUNT        
132
133 /*
134  * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
135  */
136         /* where the helpfile lives */
137 #define RCPT500_HELPFILE        LDAP_DATADIR LDAP_DIRSEP "rcpt500.help"
138         /* maximum number of matches returned */
139 #define RCPT500_SIZELIMIT       50
140         /* address replies will appear to come from */
141 #define RCPT500_FROM            "\"Directory Query Program\" <Dir-Query>"
142         /* command that will accept an RFC822 message text on standard
143            input, and send it.  sendmail -t does this nicely. */
144 #define RCPT500_PIPEMAILCMD     LDAP_SENDMAIL " -t"
145         /* attribute to use when sorting results */
146 #define RCPT500_SORT_ATTR       SORT_ATTR
147         /* max number of hits displayed in full before a list is presented */
148 #define RCPT500_LISTLIMIT       1
149         /* enable ufn support */
150 #define RCPT500_UFN
151         /* number of DN components to show in entry displays */
152 #define RCPT500_RDNCOUNT        DEFAULT_RDNCOUNT        
153
154 /*
155  * MAIL500 MAILER DEFINITIONS
156  */
157         /* max number of ambiguous matches reported */
158 #define MAIL500_MAXAMBIGUOUS    10
159         /* max subscribers allowed (size limit when searching for them ) */
160 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
161         /* timeout for all searches */
162 #define MAIL500_TIMEOUT         180
163         /* sendmail location - mail500 needs to exec this */
164 #define MAIL500_SENDMAIL        LDAP_SENDMAIL
165
166 /*
167  * UD DEFINITIONS
168  */
169         /* ud configuration file */
170 #define UD_CONFIG_FILE          LDAP_SYSCONFDIR LDAP_DIRSEP "ud.conf"
171         /* default editor */
172 #define UD_DEFAULT_EDITOR       LDAP_EDITOR
173         /* default bbasename of user config file */
174 #define UD_USER_CONFIG_FILE     ".udrc"
175         /* default base where groups are created */
176 #define UD_WHERE_GROUPS_ARE_CREATED     ""
177         /* default base below which all groups live */
178 #define UD_WHERE_ALL_GROUPS_LIVE        ""
179
180 /*
181  * FAX500 DEFINITIONS
182  */
183         /* how long to wait for searches */
184 #define FAX_TIMEOUT             180
185         /* maximum number of ambiguous matches reported */
186 #define FAX_MAXAMBIGUOUS        10
187         /* maximum number of members allowed */
188 #define FAX_MAXMEMBERS          LDAP_NO_LIMIT
189         /* program to send mail */
190 #define FAX_SENDMAIL            LDAP_SENDMAIL
191
192 /*
193  * RP500 DEFINITIONS
194  */
195         /* prefix to add to non-fully-qualified numbers */
196 #define RP_PHONEPREFIX  ""
197
198 /*
199  * SLAPD DEFINITIONS
200  */
201         /* location of the default slapd config file */
202 #define SLAPD_DEFAULT_CONFIGFILE        LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
203         /* default max deref depth for aliases */
204 #define SLAPD_DEFAULT_MAXDEREFDEPTH     15      
205         /* default sizelimit on number of entries from a search */
206 #define SLAPD_DEFAULT_SIZELIMIT         500
207         /* default timelimit to spend on a search */
208 #define SLAPD_DEFAULT_TIMELIMIT         3600
209         /* minimum max ids that a single index entry can map to in ldbm */
210 #define SLAPD_LDBM_MIN_MAXIDS           (8192-4)
211
212 /* the following DNs must be normalized! */
213         /* dn of the default subschema subentry */
214 #define SLAPD_SCHEMA_DN                 "cn=Subschema"
215 #if 0
216         /* dn of the default "monitor" subentry */
217 #define SLAPD_MONITOR_DN                "cn=Monitor"
218         /* dn of the default "config" subentry */
219 #define SLAPD_CONFIG_DN                 "cn=Config"
220 #endif
221
222 #endif /* _LDAP_CONFIG_H */