3 * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms are permitted only
7 * as authorized by the OpenLDAP Public License. A copy of this
8 * license is available at http://www.OpenLDAP.org/license.html or
9 * in file LICENSE in the top-level directory of the distribution.
12 * Copyright (c) 1994 Regents of the University of Michigan.
13 * All rights reserved.
15 * Redistribution and use in source and binary forms are permitted
16 * provided that this notice is preserved and that due credit is given
17 * to the University of Michigan at Ann Arbor. The name of the University
18 * may not be used to endorse or promote products derived from this
19 * software without specific prior written permission. This software
20 * is provided ``as is'' without express or implied warranty.
24 * This file controls defaults for OpenLDAP package.
25 * You should not change any of these settings.
28 #ifndef _LDAP_DEFAULTS_H
29 #define _LDAP_DEFAULTS_H
32 #include <ldap_config.h>
34 #define LDAP_CONF_FILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldap.conf"
35 #define LDAP_USERRC_FILE "ldaprc"
36 #define LDAP_ENV_PREFIX "LDAP"
39 /*********************************************************************
41 * You probably do not need to edit anything below this point *
43 *********************************************************************/
46 * SHARED DEFINITIONS - other things you can change
48 /* default attribute to use when sorting entries, NULL => sort by DN */
49 #define SORT_ATTR NULL
50 /* default count of DN components to show in entry displays */
51 #define DEFAULT_RDNCOUNT 2
52 /* default config file locations */
53 #define FILTERFILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldapfilter.conf"
54 #define TEMPLATEFILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldaptemplates.conf"
55 #define SEARCHFILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldapsearchprefs.conf"
56 #define FRIENDLYFILE LDAP_DATADIR LDAP_DIRSEP "ldapfriendly"
62 #define FINGER_BANNER "OpenLDAP Finger Service...\r\n"
63 /* who to report errors to */
64 #define FINGER_ERRORS "System Administrator"
65 /* what to say if no matches are found */
66 #define FINGER_NOMATCH "Search failed to find anything.\r\n"
67 /* what to say if the service may be unavailable */
68 #define FINGER_UNAVAILABLE \
69 "The directory service may be temporarily unavailable.\r\n\
70 Please try again later.\r\n"
71 /* printed if a match has no email address - for disptmp default */
72 #define FINGER_NOEMAIL1 "None registered in this service."
73 #define FINGER_NOEMAIL2 NULL
74 #define FINGER_NOEMAIL { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
75 /* maximum number of matches returned */
76 #define FINGER_SIZELIMIT 50
77 /* max number of hits displayed in full before a list is presented */
78 #define FINGER_LISTLIMIT 1
79 /* what to exec for "finger @host" */
80 #define FINGER_CMD LDAP_FINGER
81 /* how to treat aliases when searching */
82 #define FINGER_DEREF LDAP_DEREF_FINDING
83 /* attribute to use when sorting results */
84 #define FINGER_SORT_ATTR SORT_ATTR
85 /* enable ufn support */
87 /* timeout for searches */
88 #define FINGER_TIMEOUT 60
89 /* number of DN components to show in entry displays */
90 #define FINGER_RDNCOUNT DEFAULT_RDNCOUNT
93 * GO500 GOPHER GATEWAY DEFINITIONS
95 /* port on which to listen */
96 #define GO500_PORT 5555
97 /* how to handle aliases */
98 #define GO500_DEREF LDAP_DEREF_FINDING
99 /* attribute to use when sorting results */
100 #define GO500_SORT_ATTR SORT_ATTR
101 /* timeout for searches */
102 #define GO500_TIMEOUT 180
103 /* enable ufn support */
106 * only set and uncomment this if your hostname() does not return
107 * a fully qualified hostname
109 /* #define GO500_HOSTNAME "fully.qualified.hostname.here" */
110 /* number of DN components to show in entry displays */
111 #define GO500_RDNCOUNT DEFAULT_RDNCOUNT
114 * GO500GW GOPHER GATEWAY DEFINITIONS
116 /* where the helpfile lives */
117 #define GO500GW_HELPFILE LDAP_DATADIR LDAP_DIRSEP "go500gw.help"
118 /* port on which to listen */
119 #define GO500GW_PORT 7777
120 /* timeout on all searches */
121 #define GO500GW_TIMEOUT 180
122 /* enable ufn support */
124 /* attribute to use when sorting results */
125 #define GO500GW_SORT_ATTR SORT_ATTR
127 * only set and uncomment this if your hostname() does not return
128 * a fully qualified hostname
130 /* #define GO500GW_HOSTNAME "fully.qualified.hostname.here" */
131 /* number of DN components to show in entry displays */
132 #define GO500GW_RDNCOUNT DEFAULT_RDNCOUNT
135 * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
137 /* where the helpfile lives */
138 #define RCPT500_HELPFILE LDAP_DATADIR LDAP_DIRSEP "rcpt500.help"
139 /* maximum number of matches returned */
140 #define RCPT500_SIZELIMIT 50
141 /* address replies will appear to come from */
142 #define RCPT500_FROM "\"Directory Query Program\" <Dir-Query>"
143 /* command that will accept an RFC822 message text on standard
144 input, and send it. sendmail -t does this nicely. */
145 #define RCPT500_PIPEMAILCMD LDAP_SENDMAIL " -t"
146 /* attribute to use when sorting results */
147 #define RCPT500_SORT_ATTR SORT_ATTR
148 /* max number of hits displayed in full before a list is presented */
149 #define RCPT500_LISTLIMIT 1
150 /* enable ufn support */
152 /* number of DN components to show in entry displays */
153 #define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT
156 * MAIL500 MAILER DEFINITIONS
158 /* max number of ambiguous matches reported */
159 #define MAIL500_MAXAMBIGUOUS 10
160 /* max subscribers allowed (size limit when searching for them ) */
161 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
162 /* timeout for all searches */
163 #define MAIL500_TIMEOUT 180
164 /* sendmail location - mail500 needs to exec this */
165 #define MAIL500_SENDMAIL LDAP_SENDMAIL
170 /* ud configuration file */
171 #define UD_CONFIG_FILE LDAP_SYSCONFDIR LDAP_DIRSEP "ud.conf"
173 #define UD_DEFAULT_EDITOR LDAP_EDITOR
174 /* default bbasename of user config file */
175 #define UD_USER_CONFIG_FILE ".udrc"
176 /* default base where groups are created */
177 #define UD_WHERE_GROUPS_ARE_CREATED ""
178 /* default base below which all groups live */
179 #define UD_WHERE_ALL_GROUPS_LIVE ""
184 /* how long to wait for searches */
185 #define FAX_TIMEOUT 180
186 /* maximum number of ambiguous matches reported */
187 #define FAX_MAXAMBIGUOUS 10
188 /* maximum number of members allowed */
189 #define FAX_MAXMEMBERS LDAP_NO_LIMIT
190 /* program to send mail */
191 #define FAX_SENDMAIL LDAP_SENDMAIL
196 /* prefix to add to non-fully-qualified numbers */
197 #define RP_PHONEPREFIX ""
202 /* location of the default slapd config file */
203 #define SLAPD_DEFAULT_CONFIGFILE LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
204 /* default max deref depth for aliases */
205 #define SLAPD_DEFAULT_MAXDEREFDEPTH 15
206 /* default sizelimit on number of entries from a search */
207 #define SLAPD_DEFAULT_SIZELIMIT 500
208 /* default timelimit to spend on a search */
209 #define SLAPD_DEFAULT_TIMELIMIT 3600
210 /* minimum max ids that a single index entry can map to in ldbm */
211 #define SLAPD_LDBM_MIN_MAXIDS 4000
213 /* the following DNs must be normalized and in uppercase! */
214 /* dn of the special "monitor" entry */
215 #define SLAPD_MONITOR_DN "CN=MONITOR"
216 /* dn of the special "config" entry */
217 #define SLAPD_CONFIG_DN "CN=CONFIG"
218 /* dn of the special "schema" entry */
219 #define SLAPD_SCHEMA_DN "CN=SCHEMA"
221 #endif /* _LDAP_CONFIG_H */