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