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 probably do not need to edit the defaults provided by this file.
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"
40 * SHARED DEFINITIONS - other things you can change
42 /* default attribute to use when sorting entries, NULL => sort by DN */
43 #define SORT_ATTR NULL
44 /* default count of DN components to show in entry displays */
45 #define DEFAULT_RDNCOUNT 2
46 /* default config file locations */
47 #define FILTERFILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldapfilter.conf"
48 #define TEMPLATEFILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldaptemplates.conf"
49 #define SEARCHFILE LDAP_SYSCONFDIR LDAP_DIRSEP "ldapsearchprefs.conf"
50 #define FRIENDLYFILE LDAP_DATADIR LDAP_DIRSEP "ldapfriendly"
56 #define FINGER_BANNER "OpenLDAP Finger Service...\r\n"
57 /* who to report errors to */
58 #define FINGER_ERRORS "System Administrator"
59 /* what to say if no matches are found */
60 #define FINGER_NOMATCH "Search failed to find anything.\r\n"
61 /* what to say if the service may be unavailable */
62 #define FINGER_UNAVAILABLE \
63 "The directory service may be temporarily unavailable.\r\n\
64 Please try again later.\r\n"
65 /* printed if a match has no email address - for disptmp default */
66 #define FINGER_NOEMAIL1 "None registered in this service."
67 #define FINGER_NOEMAIL2 NULL
68 #define FINGER_NOEMAIL { FINGER_NOEMAIL1, FINGER_NOEMAIL2, NULL }
69 /* maximum number of matches returned */
70 #define FINGER_SIZELIMIT 50
71 /* max number of hits displayed in full before a list is presented */
72 #define FINGER_LISTLIMIT 1
73 /* what to exec for "finger @host" */
74 #define FINGER_CMD LDAP_FINGER
75 /* how to treat aliases when searching */
76 #define FINGER_DEREF LDAP_DEREF_FINDING
77 /* attribute to use when sorting results */
78 #define FINGER_SORT_ATTR SORT_ATTR
79 /* enable ufn support */
81 /* timeout for searches */
82 #define FINGER_TIMEOUT 60
83 /* number of DN components to show in entry displays */
84 #define FINGER_RDNCOUNT DEFAULT_RDNCOUNT
87 * GO500 GOPHER GATEWAY DEFINITIONS
89 /* port on which to listen */
90 #define GO500_PORT 5555
91 /* how to handle aliases */
92 #define GO500_DEREF LDAP_DEREF_FINDING
93 /* attribute to use when sorting results */
94 #define GO500_SORT_ATTR SORT_ATTR
95 /* timeout for searches */
96 #define GO500_TIMEOUT 180
97 /* enable ufn support */
100 * only set and uncomment this if your hostname() does not return
101 * a fully qualified hostname
103 /* #define GO500_HOSTNAME "fully.qualified.hostname.here" */
104 /* number of DN components to show in entry displays */
105 #define GO500_RDNCOUNT DEFAULT_RDNCOUNT
108 * GO500GW GOPHER GATEWAY DEFINITIONS
110 /* where the helpfile lives */
111 #define GO500GW_HELPFILE LDAP_DATADIR LDAP_DIRSEP "go500gw.help"
112 /* port on which to listen */
113 #define GO500GW_PORT 7777
114 /* timeout on all searches */
115 #define GO500GW_TIMEOUT 180
116 /* enable ufn support */
118 /* attribute to use when sorting results */
119 #define GO500GW_SORT_ATTR SORT_ATTR
121 * only set and uncomment this if your hostname() does not return
122 * a fully qualified hostname
124 /* #define GO500GW_HOSTNAME "fully.qualified.hostname.here" */
125 /* number of DN components to show in entry displays */
126 #define GO500GW_RDNCOUNT DEFAULT_RDNCOUNT
129 * RCPT500 MAIL RESPONDER GATEWAY DEFINITIONS
131 /* where the helpfile lives */
132 #define RCPT500_HELPFILE LDAP_DATADIR LDAP_DIRSEP "rcpt500.help"
133 /* maximum number of matches returned */
134 #define RCPT500_SIZELIMIT 50
135 /* address replies will appear to come from */
136 #define RCPT500_FROM "\"Directory Query Program\" <Dir-Query>"
137 /* command that will accept an RFC822 message text on standard
138 input, and send it. sendmail -t does this nicely. */
139 #define RCPT500_PIPEMAILCMD LDAP_SENDMAIL " -t"
140 /* attribute to use when sorting results */
141 #define RCPT500_SORT_ATTR SORT_ATTR
142 /* max number of hits displayed in full before a list is presented */
143 #define RCPT500_LISTLIMIT 1
144 /* enable ufn support */
146 /* number of DN components to show in entry displays */
147 #define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT
150 * MAIL500 MAILER DEFINITIONS
152 /* max number of ambiguous matches reported */
153 #define MAIL500_MAXAMBIGUOUS 10
154 /* max subscribers allowed (size limit when searching for them ) */
155 #define MAIL500_MAXGROUPMEMBERS LDAP_NO_LIMIT
156 /* timeout for all searches */
157 #define MAIL500_TIMEOUT 180
158 /* sendmail location - mail500 needs to exec this */
159 #define MAIL500_SENDMAIL LDAP_SENDMAIL
164 /* ud configuration file */
165 #define UD_CONFIG_FILE LDAP_SYSCONFDIR LDAP_DIRSEP "ud.conf"
167 #define UD_DEFAULT_EDITOR LDAP_EDITOR
168 /* default bbasename of user config file */
169 #define UD_USER_CONFIG_FILE ".udrc"
170 /* default base where groups are created */
171 #define UD_WHERE_GROUPS_ARE_CREATED ""
172 /* default base below which all groups live */
173 #define UD_WHERE_ALL_GROUPS_LIVE ""
178 /* how long to wait for searches */
179 #define FAX_TIMEOUT 180
180 /* maximum number of ambiguous matches reported */
181 #define FAX_MAXAMBIGUOUS 10
182 /* maximum number of members allowed */
183 #define FAX_MAXMEMBERS LDAP_NO_LIMIT
184 /* program to send mail */
185 #define FAX_SENDMAIL LDAP_SENDMAIL
190 /* prefix to add to non-fully-qualified numbers */
191 #define RP_PHONEPREFIX ""
196 /* location of the default slapd config file */
197 #define SLAPD_DEFAULT_CONFIGFILE LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.conf"
198 /* default max deref depth for aliases */
199 #define SLAPD_DEFAULT_MAXDEREFDEPTH 15
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 /* minimum max ids that a single index entry can map to in ldbm */
205 #define SLAPD_LDBM_MIN_MAXIDS 4000
207 /* the following DNs must be normalized and in uppercase! */
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 /* dn of the special "schema" entry */
213 #define SLAPD_SCHEMA_DN "CN=SCHEMA"
215 #endif /* _LDAP_CONFIG_H */