]> git.sur5r.net Git - openldap/blob - include/ldapconfig.h.edit
Unexpand spaces for tabs in prior commit before merging to rel_eng_1_1.
[openldap] / include / ldapconfig.h.edit
1 /*
2  * Copyright (c) 1994 Regents of the University of Michigan.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted
6  * provided that this notice is preserved and that due credit is given
7  * to the University of Michigan at Ann Arbor. The name of the University
8  * may not be used to endorse or promote products derived from this
9  * software without specific prior written permission. This software
10  * is provided ``as is'' without express or implied warranty.
11  */
12
13 #ifndef _LDAP_CONFIG_H
14 #define _LDAP_CONFIG_H
15
16 /*
17  * config.h for LDAP -- edit this file to customize LDAP client behavior.
18  * NO platform-specific definitions should be placed in this file.
19  * Note that this IS USED by the LDAP or LBER libraries.
20  */
21
22 /*
23  * SHARED DEFINITIONS - things you should change
24  */
25 #define DEFAULT_BINDIR          "%BINDIR%"
26 #define DEFAULT_SBINDIR         "%SBINDIR%"
27 #define DEFAULT_DATADIR         "%DATADIR%"
28 #define DEFAULT_SYSCONFDIR      "%SYSCONFDIR%"
29 #define DEFAULT_LIBEXECDIR      "%LIBEXECDIR%"
30
31 #define DEFAULT_LDAP_CONF_FILE "%SYSCONFDIR%/ldap.conf"
32 #define DEFAULT_LDAP_USERRC_FILE "ldaprc"
33 #define DEFAULT_LDAP_ENV_PREFIX "LDAP"
34
35
36 /*********************************************************************
37  *                                                                   *
38  * You probably do not need to edit anything below this point        *
39  *                                                                   *
40  *********************************************************************/
41
42 /*
43  * SHARED DEFINITIONS - other things you can change
44  */
45         /* default attribute to use when sorting entries, NULL => sort by DN */
46 #define SORT_ATTR       NULL
47         /* default count of DN components to show in entry displays */
48 #define DEFAULT_RDNCOUNT        2
49         /* default config file locations */
50 #define FILTERFILE      "%SYSCONFDIR%/ldapfilter.conf"
51 #define TEMPLATEFILE    "%SYSCONFDIR%/ldaptemplates.conf"
52 #define SEARCHFILE      "%SYSCONFDIR%/ldapsearchprefs.conf"
53 #define FRIENDLYFILE    "%DATADIR%/ldapfriendly"
54
55 /*
56  * FINGER DEFINITIONS
57  */
58         /* banner to print */
59 #define FINGER_BANNER           "OpenLDAP Finger Service...\r\n"
60         /* who to report errors to */
61 #define FINGER_ERRORS           "System Administrator"
62         /* what to say if no matches are found */
63 #define FINGER_NOMATCH          "Search failed to find anything.\r\n"
64         /* what to say if the service may be unavailable */
65 #define FINGER_UNAVAILABLE      \
66 "The directory service may be temporarily unavailable.\r\n\
67 Please try again later.\r\n"
68         /* printed if a match has no email address - for disptmp default */
69 #define FINGER_NOEMAIL1 "None registered in this service."
70 #define FINGER_NOEMAIL2 NULL
71 #define FINGER_NOEMAIL  { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
72         /* maximum number of matches returned */
73 #define FINGER_SIZELIMIT        50
74         /* max number of hits displayed in full before a list is presented */
75 #define FINGER_LISTLIMIT        1
76         /* what to exec for "finger @host" */
77 #define FINGER_CMD              "%FINGER%"
78         /* how to treat aliases when searching */
79 #define FINGER_DEREF            LDAP_DEREF_FINDING
80         /* attribute to use when sorting results */
81 #define FINGER_SORT_ATTR        SORT_ATTR
82         /* enable ufn support */
83 #define FINGER_UFN
84         /* timeout for searches */
85 #define FINGER_TIMEOUT          60
86         /* number of DN components to show in entry displays */
87 #define FINGER_RDNCOUNT         DEFAULT_RDNCOUNT        
88
89 /*
90  * GO500 GOPHER GATEWAY DEFINITIONS
91  */
92         /* port on which to listen */
93 #define GO500_PORT      5555
94         /* how to handle aliases */
95 #define GO500_DEREF     LDAP_DEREF_FINDING
96         /* attribute to use when sorting results */
97 #define GO500_SORT_ATTR SORT_ATTR
98         /* timeout for searches */
99 #define GO500_TIMEOUT   180
100         /* enable ufn support */
101 #define GO500_UFN
102         /*
103          * only set and uncomment this if your hostname() does not return
104          * a fully qualified hostname
105          */
106 /* #define GO500_HOSTNAME       "fully.qualified.hostname.here" */
107         /* number of DN components to show in entry displays */
108 #define GO500_RDNCOUNT          DEFAULT_RDNCOUNT        
109
110 /*
111  * GO500GW GOPHER GATEWAY DEFINITIONS
112  */
113         /* where the helpfile lives */
114 #define GO500GW_HELPFILE        "%DATADIR%/go500gw.help"
115         /* port on which to listen */
116 #define GO500GW_PORT            7777
117         /* timeout on all searches */
118 #define GO500GW_TIMEOUT         180
119         /* enable ufn support */
120 #define GO500GW_UFN
121         /* attribute to use when sorting results */
122 #define GO500GW_SORT_ATTR       SORT_ATTR
123         /*
124          * only set and uncomment this if your hostname() does not return
125          * a fully qualified hostname
126          */
127 /* #define GO500GW_HOSTNAME     "fully.qualified.hostname.here" */
128         /* number of DN components to show in entry displays */
129 #define GO500GW_RDNCOUNT        DEFAULT_RDNCOUNT        
130
131 /*
132  * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
133  */
134         /* where the helpfile lives */
135 #define RCPT500_HELPFILE        "%DATADIR%/rcpt500.help"
136         /* maximum number of matches returned */
137 #define RCPT500_SIZELIMIT       50
138         /* address replies will appear to come from */
139 #define RCPT500_FROM            "\"Directory Query Program\" <Dir-Query>"
140         /* command that will accept an RFC822 message text on standard
141            input, and send it.  sendmail -t does this nicely. */
142 #define RCPT500_PIPEMAILCMD     "%SENDMAIL% -t"
143         /* attribute to use when sorting results */
144 #define RCPT500_SORT_ATTR       SORT_ATTR
145         /* max number of hits displayed in full before a list is presented */
146 #define RCPT500_LISTLIMIT       1
147         /* enable ufn support */
148 #define RCPT500_UFN
149         /* number of DN components to show in entry displays */
150 #define RCPT500_RDNCOUNT        DEFAULT_RDNCOUNT        
151
152 /*
153  * MAIL500 MAILER DEFINITIONS
154  */
155         /* max number of ambiguous matches reported */
156 #define MAIL500_MAXAMBIGUOUS    10
157         /* max subscribers allowed (size limit when searching for them ) */
158 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
159         /* timeout for all searches */
160 #define MAIL500_TIMEOUT         180
161         /* sendmail location - mail500 needs to exec this */
162 #define MAIL500_SENDMAIL        "%SENDMAIL%"
163
164 /*
165  * UD DEFINITIONS
166  */
167         /* ud configuration file */
168 #define UD_CONFIG_FILE          "%SYSCONFDIR%/ud.conf"
169         /* default editor */
170 #define UD_DEFAULT_EDITOR       "%EDITOR%"
171         /* default bbasename of user config file */
172 #define UD_USER_CONFIG_FILE     ".udrc"
173         /* default base where groups are created */
174 #define UD_WHERE_GROUPS_ARE_CREATED     ""
175         /* default base below which all groups live */
176 #define UD_WHERE_ALL_GROUPS_LIVE        ""
177
178 /*
179  * FAX500 DEFINITIONS
180  */
181         /* how long to wait for searches */
182 #define FAX_TIMEOUT             180
183         /* maximum number of ambiguous matches reported */
184 #define FAX_MAXAMBIGUOUS        10
185         /* maximum number of members allowed */
186 #define FAX_MAXMEMBERS          LDAP_NO_LIMIT
187         /* program to send mail */
188 #define FAX_SENDMAIL            "%SENDMAIL%"
189
190 /*
191  * RP500 DEFINITIONS
192  */
193         /* prefix to add to non-fully-qualified numbers */
194 #define RP_PHONEPREFIX  ""
195
196 /*
197  * SLAPD DEFINITIONS
198  */
199         /* location of the default slapd config file */
200 #define SLAPD_DEFAULT_CONFIGFILE        "%SYSCONFDIR%/slapd.conf"
201         /* default max deref depth for aliases */
202 #define SLAPD_DEFAULT_MAXDEREFDEPTH     15      
203         /* default sizelimit on number of entries from a search */
204 #define SLAPD_DEFAULT_SIZELIMIT         500
205         /* default timelimit to spend on a search */
206 #define SLAPD_DEFAULT_TIMELIMIT         3600
207         /* location of the slapd pid file */
208 #define SLAPD_PIDFILE                   "%RUNDIR%/slapd.pid"
209         /* location of the slapd args file */
210 #define SLAPD_ARGSFILE                  "%RUNDIR%/slapd.args"
211         /* dn of the special "monitor" entry */
212 #define SLAPD_MONITOR_DN                "cn=monitor"
213         /* dn of the special "config" entry */
214 #define SLAPD_CONFIG_DN                 "cn=config"
215         /* minimum max ids that a single index entry can map to in ldbm */
216 #define SLAPD_LDBM_MIN_MAXIDS           4000
217
218 #endif /* _LDAP_CONFIG_H */