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