xref: /onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/wu_config.h (revision 0:68f95e015346)
1 #pragma ident	"%Z%%M%	%I%	%E% SMI"
2 
3 /* config.h.  Generated automatically by configure.  */
4 /****************************************************************************
5 
6   Copyright (c) 1999,2000 WU-FTPD Development Group.
7   All rights reserved.
8 
9   Portions Copyright (c) 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994
10     The Regents of the University of California.
11   Portions Copyright (c) 1993, 1994 Washington University in Saint Louis.
12   Portions Copyright (c) 1996, 1998 Berkeley Software Design, Inc.
13   Portions Copyright (c) 1989 Massachusetts Institute of Technology.
14   Portions Copyright (c) 1998 Sendmail, Inc.
15   Portions Copyright (c) 1983, 1995, 1996, 1997 Eric P.  Allman.
16   Portions Copyright (c) 1997 by Stan Barber.
17   Portions Copyright (c) 1997 by Kent Landfield.
18   Portions Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997
19     Free Software Foundation, Inc.
20 
21   Use and distribution of this software and its source code are governed
22   by the terms and conditions of the WU-FTPD Software License ("LICENSE").
23 
24   If you did not receive a copy of the license, it may be obtained online
25   at http://www.wu-ftpd.org/license.html.
26 
27   $Id: config.h.in,v 1.15 2000/07/01 17:42:15 wuftpd Exp $
28 
29 ****************************************************************************/
30 
31 /*
32  * Top level config file... These values will be adjusted by autoconf.
33  * $Id: config.h.in,v 1.15 2000/07/01 17:42:15 wuftpd Exp $
34  */
35 
36 /*
37  * allow "upload" keyword in ftpaccess
38  */
39 
40 #define UPLOAD 1
41 
42 /*
43  * allow "overwrite" keyword in ftpaccess.
44  */
45 
46 #define OVERWRITE 1
47 
48 /*
49  * allow "allow/deny" for individual users.
50  */
51 
52 #define HOST_ACCESS 1
53 
54 /*
55  * log failed login attempts
56  */
57 
58 #define LOG_FAILED 1
59 
60 /*
61  * log login attempts that fail because of class connection
62  * limits.  Busy servers may want to prevent this logging
63  * since it can fill up the log file and put a high load on
64  * syslog.
65  */
66 #define LOG_TOOMANY 1
67 
68 /*
69  * allow use of private file.  (for site group and site gpass)
70  * NO_PRIVATE
71  * Define this if you don't want to use the private authentication databases.
72  */
73 
74 /* #undef NO_PRIVATE */
75 
76 /*
77  * Try once more on failed DNS lookups (to allow far away connections
78  * which might resolve slowly)
79  */
80 
81 /* #undef DNS_TRYAGAIN */
82 
83 /*
84  * ANON_ONLY
85  * Permit only anonymous logins... disables all other type
86  * See FIXES-2.4-HOBBIT for more information on this option.
87  */
88 
89 /* #undef ANON_ONLY */
90 
91 /*
92  * PARANOID
93  * Disable "questionable" functions
94  * See FIXES-2.4-HOBBIT for more information on this option.
95  */
96 
97 /* #undef PARANOID */
98 
99 /*
100  * SKEY
101  * Add SKEY support -- REQUIRES SKEY libraries
102  * See FIXES-2.4-HOBBIT for more information on this option.
103  */
104 
105 /* #undef SKEY */
106 
107 /*
108  * OPIE
109  * One-time Passwords In Everything (OPIE)
110  * Add OPIE support -- REQUIRES OPIE libraries
111  */
112 
113 #if !defined (LINUX)		/* Linux autodetects OPIE */
114 /* #undef OPIE */
115 #endif
116 
117 /*
118  * ALTERNATE_CD
119  * Causes "cd ~" to return the chroot-relative directory instead of the
120  * real directory.
121  */
122 #define ALTERNATE_CD 1
123 
124 /*
125  * UNRESTRICTED_CHMOD
126  * If defined, any valid value for the mode will be accepted.
127  * Otherwise, only values between 0 and 777 are accepted.
128  */
129 /* #undef UNRESTRICTED_CHMOD */
130 
131 /*
132  * USE_RFC931
133  * Define this if you want to use RFC 931 'authentication' - this improves
134  * the logging at the cost of a possible slight delay in connection.
135  */
136 /* #undef USE_RFC931 */
137 
138 /*
139  * BUFFER_SIZE
140  * You can specify the buffer size for binary transfers; the defaults
141  * are often far too small for efficiency.
142  */
143 /* #undef BUFFER_SIZE */
144 
145 /*
146  * If you want to specify the syslog facility, you should modify CFLAGS in
147  * the appropriate src/makefile/Makefile.*.
148  */
149 
150 /* If you want to set the paths where the configuration files, pids and logs
151  * are stored, you should inspect src/pathnames.h and modify the appropriate
152  * src/config/config.*.
153  */
154 
155 /*
156  * RATIO
157  * Support for Upload/Download ratios (may download x bytes for uploading 1 byte)
158  */
159 /* #undef RATIO */
160 
161 /*
162  * OTHER_PASSWD
163  * Support for using alternative passwd/shadow files
164  */
165 #define OTHER_PASSWD 1
166 
167 /*
168  * DAEMON
169  * If ftpd called with -D then run as a standalone daemon listing on the
170  * ftp port.   This can speed up ftpd response as all ftpd then needs to
171  * do is fork off a copy to handle an incoming request.  Under inetd
172  * a new copy has to be opened and exec'd.
173  */
174 #define DAEMON 1
175 
176 /*
177  * MAX_BACKLOG
178  * Only used in DAEMON mode.
179  * This is second parameter to listen.  It defines the number of incoming
180  * processes to allow to backlog, prior to being accept() processing them,
181  * before rejecting.
182  */
183 #define MAX_BACKLOG 100
184 
185 /*
186  * MAPPING_CHDIR
187  * Keep track of the path the user has chdir'd into and respond with
188  * that to pwd commands.  This is to avoid having the absolue disk
189  * path returned.  This helps avoid returning dirs like '.1/fred'
190  * when lots of disks make up the ftp area.
191  */
192 
193 #define MAPPING_CHDIR 1
194 
195 /*
196  * THROUGHPUT
197  * Keep track of total throughput for the user and limit if required.
198  */
199 
200 #define THROUGHPUT 1
201 
202 /*
203  * TRANSFER_COUNT
204  * Keep track of total bytes for statistics.
205  */
206 
207 #define TRANSFER_COUNT 1
208 
209 /*
210  * TRANSFER_LIMIT
211  * Limit file and bytes transferred in a session.
212  */
213 
214 #define TRANSFER_LIMIT 1
215 
216 /*
217  * NO_SUCKING_NEWLINES
218  * Don't suppress some extra blank lines on messages and banners.
219  */
220 
221 /* #undef NO_SUCKING_NEWLINES */
222 
223 /*
224  * HELP_CRACKERS
225  * Define this to help crackers break into your system by letting them
226  * figure out which user names exist to guess passwords on.
227  */
228 
229 /* #undef HELP_CRACKERS */
230 
231 /*
232  * VERBOSE_ERROR_LOGING
233  * Log all problems with USER and PASS as well as all rejected commands
234  * and denied uploads/downloads.
235  */
236 
237 #define VERBOSE_ERROR_LOGING 1
238 
239 /*
240  * IGNORE_NOOP
241  * Undefine this to let NOOP reset the idle timeout.
242  */
243 
244 #define IGNORE_NOOP 1
245 
246 /*
247  * CLOSED_VIRTUAL_SERVER
248  * Undefine this to allow real and non-owner guests to log in on a virutal server's address.
249  */
250 #define CLOSED_VIRTUAL_SERVER 1
251 
252 /*
253  * Some people don't like PASV and want to disable it.  Whatever.
254  * PORT can be abused to attack other hosts.  Let's give the option to
255  * disable one or the other.  We'll ignore DISABLE_PASV if you defined
256  * DISABLE_PORT (hey, you gotta have at least one!).
257  */
258 /* #undef DISABLE_PORT */
259 /* #undef DISABLE_PASV */
260 
261 /*
262  * Define this to suppress messages about PID locks causing the daemon to
263  * sleep.  This should only be needed at busy sites.
264  */
265 #define NO_PID_SLEEP_MSGS 1
266 
267 /*
268  * Define this to require the remove end of a PASV connection to have the
269  * same IP as the control connection.  This limits, but does not eliminate,
270  * the risk of PASV port race stealing the connection.  It also is non-RFC
271  * compliant, so it may cause problems for some client sites.
272  */
273 #define FIGHT_PASV_PORT_RACE 1
274 
275 /*
276  * Define this to completely disable anonymous FTP access.
277  */
278 /* #undef NO_ANONYMOUS_ACCESS */
279 
280 /*
281  * Define this to have an ls command compiled into the daemon. That way you
282  * don't need to put statically linked ls's into every chroot directory.
283  */
284 /* #undef INTERNAL_LS */
285 
286 /*
287  * Define this if you want the internal ls to display UIDs/GIDs rather than
288  * user/group names. This is faster, but doesn't look as nice.
289  */
290 /* #undef LS_NUMERIC_UIDS */
291 
292 /*
293  * Define this if you want to hide setuid bits in the internal ls
294  * this might be a good idea for security.
295  */
296 #define HIDE_SETUID 1
297 
298 /*
299  * Define this if you want to support virtual servers
300  */
301 #define VIRTUAL 1
302 
303 /*
304  * Define this if you want to be able to receive mail on anonymous
305  * uploads
306  */
307 #define MAIL_ADMIN 1
308 
309 /*
310  * Config files in /etc by default
311  */
312 #define USE_ETC 1
313 
314 /*
315  * Define this to support quota mechanisms...
316  */
317 #define QUOTA 1
318 
319 /*
320  * The intention of SITE NEWER was to enable mirrors to quickly determine which
321  * files have changed since the last run. Since most mirror packages wish to
322  * work with all daemons (not just wu-ftpd), and since SITE NEWER is a wu-ftpd
323  * only feature, they don't use the feature. Therefore there seems little
324  * reason to continue to support it.
325  *
326  * Define this to support SITE NEWER and SITE MINFO.
327  */
328 /* #undef SITE_NEWER */
329 
330 /*
331  * Define this to revert the NLST command to showing directories.
332  *
333  * This will cause mget to have errors when it attempts to RETR the
334  * directory name (which is not a RETRievable object) but will revert
335  * the NLST command enough to quell complains from Solaris command-
336  * line FTP client users.
337  */
338 #define NLST_SHOWS_DIRS 1
339