]> git.sur5r.net Git - openldap/blob - include/ldapconfig.h.edit
Minor fixes to complete backout of initialization/startup changes.
[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 LDAP client behavior.
27  * NO platform-specific definitions should be placed in this file.
28  * Note that this IS USED by the LDAP or LBER libraries.
29  */
30
31 /*
32  * SHARED DEFINITIONS - things you should change
33  */
34 #define DEFAULT_DIRSEP          "/"
35 #define DEFAULT_BINDIR          "%BINDIR%"
36 #define DEFAULT_SBINDIR         "%SBINDIR%"
37 #define DEFAULT_DATADIR         "%DATADIR%"
38 #define DEFAULT_SYSCONFDIR      "%SYSCONFDIR%"
39 #define DEFAULT_LIBEXECDIR      "%LIBEXECDIR%"
40 #define DEFAULT_RUNDIR          "%RUNDIR%"
41
42 #define DEFAULT_LDAP_CONF_FILE "%SYSCONFDIR%/ldap.conf"
43 #define DEFAULT_LDAP_USERRC_FILE "ldaprc"
44 #define DEFAULT_LDAP_ENV_PREFIX "LDAP"
45
46
47 /*********************************************************************
48  *                                                                   *
49  * You probably do not need to edit anything below this point        *
50  *                                                                   *
51  *********************************************************************/
52
53 /*
54  * SHARED DEFINITIONS - other things you can change
55  */
56         /* default attribute to use when sorting entries, NULL => sort by DN */
57 #define SORT_ATTR       NULL
58         /* default count of DN components to show in entry displays */
59 #define DEFAULT_RDNCOUNT        2
60         /* default config file locations */
61 #define FILTERFILE      "%SYSCONFDIR%/ldapfilter.conf"
62 #define TEMPLATEFILE    "%SYSCONFDIR%/ldaptemplates.conf"
63 #define SEARCHFILE      "%SYSCONFDIR%/ldapsearchprefs.conf"
64 #define FRIENDLYFILE    "%DATADIR%/ldapfriendly"
65
66 /*
67  * FINGER DEFINITIONS
68  */
69         /* banner to print */
70 #define FINGER_BANNER           "OpenLDAP Finger Service...\r\n"
71         /* who to report errors to */
72 #define FINGER_ERRORS           "System Administrator"
73         /* what to say if no matches are found */
74 #define FINGER_NOMATCH          "Search failed to find anything.\r\n"
75         /* what to say if the service may be unavailable */
76 #define FINGER_UNAVAILABLE      \
77 "The directory service may be temporarily unavailable.\r\n\
78 Please try again later.\r\n"
79         /* printed if a match has no email address - for disptmp default */
80 #define FINGER_NOEMAIL1 "None registered in this service."
81 #define FINGER_NOEMAIL2 NULL
82 #define FINGER_NOEMAIL  { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
83         /* maximum number of matches returned */
84 #define FINGER_SIZELIMIT        50
85         /* max number of hits displayed in full before a list is presented */
86 #define FINGER_LISTLIMIT        1
87         /* what to exec for "finger @host" */
88 #define FINGER_CMD              "%FINGER%"
89         /* how to treat aliases when searching */
90 #define FINGER_DEREF            LDAP_DEREF_FINDING
91         /* attribute to use when sorting results */
92 #define FINGER_SORT_ATTR        SORT_ATTR
93         /* enable ufn support */
94 #define FINGER_UFN
95         /* timeout for searches */
96 #define FINGER_TIMEOUT          60
97         /* number of DN components to show in entry displays */
98 #define FINGER_RDNCOUNT         DEFAULT_RDNCOUNT        
99
100 /*
101  * GO500 GOPHER GATEWAY DEFINITIONS
102  */
103         /* port on which to listen */
104 #define GO500_PORT      5555
105         /* how to handle aliases */
106 #define GO500_DEREF     LDAP_DEREF_FINDING
107         /* attribute to use when sorting results */
108 #define GO500_SORT_ATTR SORT_ATTR
109         /* timeout for searches */
110 #define GO500_TIMEOUT   180
111         /* enable ufn support */
112 #define GO500_UFN
113         /*
114          * only set and uncomment this if your hostname() does not return
115          * a fully qualified hostname
116          */
117 /* #define GO500_HOSTNAME       "fully.qualified.hostname.here" */
118         /* number of DN components to show in entry displays */
119 #define GO500_RDNCOUNT          DEFAULT_RDNCOUNT        
120
121 /*
122  * GO500GW GOPHER GATEWAY DEFINITIONS
123  */
124         /* where the helpfile lives */
125 #define GO500GW_HELPFILE        "%DATADIR%/go500gw.help"
126         /* port on which to listen */
127 #define GO500GW_PORT            7777
128         /* timeout on all searches */
129 #define GO500GW_TIMEOUT         180
130         /* enable ufn support */
131 #define GO500GW_UFN
132         /* attribute to use when sorting results */
133 #define GO500GW_SORT_ATTR       SORT_ATTR
134         /*
135          * only set and uncomment this if your hostname() does not return
136          * a fully qualified hostname
137          */
138 /* #define GO500GW_HOSTNAME     "fully.qualified.hostname.here" */
139         /* number of DN components to show in entry displays */
140 #define GO500GW_RDNCOUNT        DEFAULT_RDNCOUNT        
141
142 /*
143  * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
144  */
145         /* where the helpfile lives */
146 #define RCPT500_HELPFILE        "%DATADIR%/rcpt500.help"
147         /* maximum number of matches returned */
148 #define RCPT500_SIZELIMIT       50
149         /* address replies will appear to come from */
150 #define RCPT500_FROM            "\"Directory Query Program\" <Dir-Query>"
151         /* command that will accept an RFC822 message text on standard
152            input, and send it.  sendmail -t does this nicely. */
153 #define RCPT500_PIPEMAILCMD     "%SENDMAIL% -t"
154         /* attribute to use when sorting results */
155 #define RCPT500_SORT_ATTR       SORT_ATTR
156         /* max number of hits displayed in full before a list is presented */
157 #define RCPT500_LISTLIMIT       1
158         /* enable ufn support */
159 #define RCPT500_UFN
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        "%SENDMAIL%"
174
175 /*
176  * UD DEFINITIONS
177  */
178         /* ud configuration file */
179 #define UD_CONFIG_FILE          "%SYSCONFDIR%/ud.conf"
180         /* default editor */
181 #define UD_DEFAULT_EDITOR       "%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            "%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        "%SYSCONFDIR%/slapd.conf"
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           4000
220
221 /* the following DNs must be normalized and in uppercase! */
222         /* dn of the special "monitor" entry */
223 #define SLAPD_MONITOR_DN                "CN=MONITOR"
224         /* dn of the special "config" entry */
225 #define SLAPD_CONFIG_DN                 "CN=CONFIG"
226         /* dn of the special "schema" entry */
227 /* #define SLAPD_SCHEMA_DN                      "CN=SCHEMA" */
228
229 #endif /* _LDAP_CONFIG_H */