1<testcase>
2<info>
3<keywords>
4FTP
5PASV
6LIST
7--ftp-alternative-to-user
8</keywords>
9</info>
10#
11# Server-side
12<reply>
13# When doing LIST, we get the default list output hard-coded in the test
14# FTP server
15<datacheck mode="text">
16total 20
17drwxr-xr-x   8 98       98           512 Oct 22 13:06 .
18drwxr-xr-x   8 98       98           512 Oct 22 13:06 ..
19drwxr-xr-x   2 98       98           512 May  2  1996 .NeXT
20-r--r--r--   1 0        1             35 Jul 16  1996 README
21lrwxrwxrwx   1 0        1              7 Dec  9  1999 bin -> usr/bin
22dr-xr-xr-x   2 0        1            512 Oct  1  1997 dev
23drwxrwxrwx   2 98       98           512 May 29 16:04 download.html
24dr-xr-xr-x   2 0        1            512 Nov 30  1995 etc
25drwxrwxrwx   2 98       1            512 Oct 30 14:33 pub
26dr-xr-xr-x   5 0        1            512 Oct  1  1997 usr
27</datacheck>
28<servercmd>
29REPLY USER 530 We don't like USER commands
30COUNT USER 1
31</servercmd>
32</reply>
33
34#
35# Client-side
36<client>
37<server>
38ftp
39</server>
40 <name>
41FTP --ftp-alternative-to-user on USER failure
42 </name>
43 <command>
44ftp://%HOSTIP:%FTPPORT/280/ --ftp-alternative-to-user "USER replacement"
45</command>
46</client>
47
48#
49# Verify data after the test has been "shot"
50<verify>
51<protocol>
52USER anonymous
53USER replacement
54PASS ftp@example.com
55PWD
56CWD 280
57EPSV
58TYPE A
59LIST
60QUIT
61</protocol>
62</verify>
63</testcase>
64