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