]> git.sur5r.net Git - openldap/blob - include/ldapconfig.h.edit
- Make install creates $(RUNDIR)/var for pid and args files of slapd.
[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_BINDIR          "%BINDIR%"
35 #define DEFAULT_SBINDIR         "%SBINDIR%"
36 #define DEFAULT_DATADIR         "%DATADIR%"
37 #define DEFAULT_SYSCONFDIR      "%SYSCONFDIR%"
38 #define DEFAULT_LIBEXECDIR      "%LIBEXECDIR%"
39
40 #define DEFAULT_LDAP_CONF_FILE "%SYSCONFDIR%/ldap.conf"
41 #define DEFAULT_LDAP_USERRC_FILE "ldaprc"
42 #define DEFAULT_LDAP_ENV_PREFIX "LDAP"
43
44
45 /*********************************************************************
46  *                                                                   *
47  * You probably do not need to edit anything below this point        *
48  *                                                                   *
49  *********************************************************************/
50
51 /*
52  * SHARED DEFINITIONS - other things you can change
53  */
54         /* default attribute to use when sorting entries, NULL => sort by DN */
55 #define SORT_ATTR       NULL
56         /* default count of DN components to show in entry displays */
57 #define DEFAULT_RDNCOUNT        2
58         /* default config file locations */
59 #define FILTERFILE      "%SYSCONFDIR%/ldapfilter.conf"
60 #define TEMPLATEFILE    "%SYSCONFDIR%/ldaptemplates.conf"
61 #define SEARCHFILE      "%SYSCONFDIR%/ldapsearchprefs.conf"
62 #define FRIENDLYFILE    "%DATADIR%/ldapfriendly"
63
64 /*
65  * FINGER DEFINITIONS
66  */
67         /* banner to print */
68 #define FINGER_BANNER           "OpenLDAP Finger Service...\r\n"
69         /* who to report errors to */
70 #define FINGER_ERRORS           "System Administrator"
71         /* what to say if no matches are found */
72 #define FINGER_NOMATCH          "Search failed to find anything.\r\n"
73         /* what to say if the service may be unavailable */
74 #define FINGER_UNAVAILABLE      \
75 "The directory service may be temporarily unavailable.\r\n\
76 Please try again later.\r\n"
77         /* printed if a match has no email address - for disptmp default */
78 #define FINGER_NOEMAIL1 "None registered in this service."
79 #define FINGER_NOEMAIL2 NULL
80 #define FINGER_NOEMAIL  { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
81         /* maximum number of matches returned */
82 #define FINGER_SIZELIMIT        50
83         /* max number of hits displayed in full before a list is presented */
84 #define FINGER_LISTLIMIT        1
85         /* what to exec for "finger @host" */
86 #define FINGER_CMD              "%FINGER%"
87         /* how to treat aliases when searching */
88 #define FINGER_DEREF            LDAP_DEREF_FINDING
89         /* attribute to use when sorting results */
90 #define FINGER_SORT_ATTR        SORT_ATTR
91         /* enable ufn support */
92 #define FINGER_UFN
93         /* timeout for searches */
94 #define FINGER_TIMEOUT          60
95         /* number of DN components to show in entry displays */
96 #define FINGER_RDNCOUNT         DEFAULT_RDNCOUNT        
97
98 /*
99  * GO500 GOPHER GATEWAY DEFINITIONS
100  */
101         /* port on which to listen */
102 #define GO500_PORT      5555
103         /* how to handle aliases */
104 #define GO500_DEREF     LDAP_DEREF_FINDING
105         /* attribute to use when sorting results */
106 #define GO500_SORT_ATTR SORT_ATTR
107         /* timeout for searches */
108 #define GO500_TIMEOUT   180
109         /* enable ufn support */
110 #define GO500_UFN
111         /*
112          * only set and uncomment this if your hostname() does not return
113          * a fully qualified hostname
114          */
115 /* #define GO500_HOSTNAME       "fully.qualified.hostname.here" */
116         /* number of DN components to show in entry displays */
117 #define GO500_RDNCOUNT          DEFAULT_RDNCOUNT        
118
119 /*
120  * GO500GW GOPHER GATEWAY DEFINITIONS
121  */
122         /* where the helpfile lives */
123 #define GO500GW_HELPFILE        "%DATADIR%/go500gw.help"
124         /* port on which to listen */
125 #define GO500GW_PORT            7777
126         /* timeout on all searches */
127 #define GO500GW_TIMEOUT         180
128         /* enable ufn support */
129 #define GO500GW_UFN
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        "%DATADIR%/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     "%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         /* enable ufn support */
157 #define RCPT500_UFN
158         /* number of DN components to show in entry displays */
159 #define RCPT500_RDNCOUNT        DEFAULT_RDNCOUNT        
160
161 /*
162  * MAIL500 MAILER DEFINITIONS
163  */
164         /* max number of ambiguous matches reported */
165 #define MAIL500_MAXAMBIGUOUS    10
166         /* max subscribers allowed (size limit when searching for them ) */
167 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
168         /* timeout for all searches */
169 #define MAIL500_TIMEOUT         180
170         /* sendmail location - mail500 needs to exec this */
171 #define MAIL500_SENDMAIL        "%SENDMAIL%"
172
173 /*
174  * UD DEFINITIONS
175  */
176         /* ud configuration file */
177 #define UD_CONFIG_FILE          "%SYSCONFDIR%/ud.conf"
178         /* default editor */
179 #define UD_DEFAULT_EDITOR       "%EDITOR%"
180         /* default bbasename of user config file */
181 #define UD_USER_CONFIG_FILE     ".udrc"
182         /* default base where groups are created */
183 #define UD_WHERE_GROUPS_ARE_CREATED     ""
184         /* default base below which all groups live */
185 #define UD_WHERE_ALL_GROUPS_LIVE        ""
186
187 /*
188  * FAX500 DEFINITIONS
189  */
190         /* how long to wait for searches */
191 #define FAX_TIMEOUT             180
192         /* maximum number of ambiguous matches reported */
193 #define FAX_MAXAMBIGUOUS        10
194         /* maximum number of members allowed */
195 #define FAX_MAXMEMBERS          LDAP_NO_LIMIT
196         /* program to send mail */
197 #define FAX_SENDMAIL            "%SENDMAIL%"
198
199 /*
200  * RP500 DEFINITIONS
201  */
202         /* prefix to add to non-fully-qualified numbers */
203 #define RP_PHONEPREFIX  ""
204
205 /*
206  * SLAPD DEFINITIONS
207  */
208         /* location of the default slapd config file */
209 #define SLAPD_DEFAULT_CONFIGFILE        "%SYSCONFDIR%/slapd.conf"
210         /* default max deref depth for aliases */
211 #define SLAPD_DEFAULT_MAXDEREFDEPTH     15      
212         /* default sizelimit on number of entries from a search */
213 #define SLAPD_DEFAULT_SIZELIMIT         500
214         /* default timelimit to spend on a search */
215 #define SLAPD_DEFAULT_TIMELIMIT         3600
216         /* location of the slapd pid file */
217 #define SLAPD_PIDFILE                   "%RUNDIR%/slapd.pid"
218 #define SLAPD_PIDDIR            "%RUNDIR%/"
219 #define SLAPD_PIDEXT            ".pid"
220         /* location of the slapd args file */
221 #define SLAPD_ARGSFILE                  "%RUNDIR%/slapd.args"
222 #define SLAPD_ARGSDIR           "%RUNDIR%/"
223 #define SLAPD_ARGSEXT           ".args"
224         /* dn of the special "monitor" entry */
225 #define SLAPD_MONITOR_DN                "cn=monitor"
226         /* dn of the special "config" entry */
227 #define SLAPD_CONFIG_DN                 "cn=config"
228         /* minimum max ids that a single index entry can map to in ldbm */
229 #define SLAPD_LDBM_MIN_MAXIDS           4000
230
231 #endif /* _LDAP_CONFIG_H */