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