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 NOT used by the LDAP or LBER libraries.
23 * SHARED DEFINITIONS - things you should change
25 #define DEFAULT_BINDIR "C:\\OpenLDAP\\bin"
26 #define DEFAULT_SBINDIR "C:\\OpenLDAP\\sbin"
27 #define DEFAULT_ETCDIR "C:\\OpenLDAP\\etc"
28 #define DEFAULT_LIBEXECDIR "C:\\OpenLDAP\\execdir"
30 #define DEFAULT_LDAP_CONF_FILE "c:\\OpenLDAP\\ldap.conf"
31 #define DEFAULT_LDAP_USERRC_FILE "ldaprc"
32 #define DEFAULT_LDAP_ENV_PREFIX "LDAP"
35 /*********************************************************************
37 * You probably do not need to edit anything below this point *
39 *********************************************************************/
42 * SHARED DEFINITIONS - other things you can change
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 "C:\\OpenLDAP\\etc\\ldapfilter.conf"
50 #define TEMPLATEFILE "C:\\OpenLDAP\\etc\\ldaptemplates.conf"
51 #define SEARCHFILE "C:\\OpenLDAP\\etc\\ldapsearchprefs.conf"
52 #define FRIENDLYFILE "C:\\OpenLDAP\\etc\\ldapfriendly"
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 */
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
89 * GO500 GOPHER GATEWAY DEFINITIONS
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 */
102 * only set and uncomment this if your hostname() does not return
103 * a fully qualified hostname
105 /* #define GO500_HOSTNAME "fully.qualified.hostname.here" */
106 /* number of DN components to show in entry displays */
107 #define GO500_RDNCOUNT DEFAULT_RDNCOUNT
110 * GO500GW GOPHER GATEWAY DEFINITIONS
112 /* where the helpfile lives */
113 #define GO500GW_HELPFILE "C:\\OpenLDAP\\etc\\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 */
120 /* attribute to use when sorting results */
121 #define GO500GW_SORT_ATTR SORT_ATTR
123 * only set and uncomment this if your hostname() does not return
124 * a fully qualified hostname
126 /* #define GO500GW_HOSTNAME "fully.qualified.hostname.here" */
127 /* number of DN components to show in entry displays */
128 #define GO500GW_RDNCOUNT DEFAULT_RDNCOUNT
131 * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
133 /* where the helpfile lives */
134 #define RCPT500_HELPFILE "C:\\OpenLDAP\\etc\\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 */
148 /* number of DN components to show in entry displays */
149 #define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT
152 * MAIL500 MAILER DEFINITIONS
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%"
166 /* ud configuration file */
167 #define UD_CONFIG_FILE "C:\\OpenLDAP\\etc\\ud.conf"
169 #define UD_DEFAULT_EDITOR "C:\\OpenLDAP\\etc"
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 ""
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%"
192 /* prefix to add to non-fully-qualified numbers */
193 #define RP_PHONEPREFIX ""
198 /* location of the default slapd config file */
199 #define SLAPD_DEFAULT_CONFIGFILE "C:\\OpenLDAP\\etc\\slapd.conf"
200 /* default sizelimit on number of entries from a search */
201 #define SLAPD_DEFAULT_SIZELIMIT 500
202 /* default timelimit to spend on a search */
203 #define SLAPD_DEFAULT_TIMELIMIT 3600
204 /* location of the slapd pid file */
205 #define SLAPD_PIDFILE "C:\\OpenLDAP\\run\\slapd.pid"
206 /* location of the slapd args file */
207 #define SLAPD_ARGSFILE "C:\\OpenLDAP\\run\\slapd.args"
208 /* dn of the special "monitor" entry */
209 #define SLAPD_MONITOR_DN "cn=monitor"
210 /* dn of the special "config" entry */
211 #define SLAPD_CONFIG_DN "cn=config"
212 /* minimum max ids that a single index entry can map to in ldbm */
213 #define SLAPD_LDBM_MIN_MAXIDS 4000
215 #endif /* _LDAP_CONFIG_H */