xref: /curl/tests/data/test879 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4POP3
5SASL
6SASL AUTH CRAM-MD5
7SASL AUTH PLAIN
8SASL DOWNGRADE
9RFC1734
10RFC2195
11RFC5034
12</keywords>
13</info>
14
15#
16# Server-side
17<reply>
18<servercmd>
19AUTH CRAM-MD5 PLAIN
20REPLY "AUTH CRAM-MD5" + Rubbish
21REPLY * -ERR AUTH exchange cancelled by client
22REPLY "AUTH PLAIN" +
23REPLY AHVzZXIAc2VjcmV0 +OK Login successful
24</servercmd>
25<data>
26From: me@somewhere
27To: fake@nowhere
28
29body
30
31--
32  yours sincerely
33</data>
34</reply>
35
36#
37# Client-side
38<client>
39<server>
40pop3
41</server>
42<features>
43crypto
44</features>
45<name>
46POP3 CRAM-MD5 authentication with SASL downgrade
47</name>
48<command>
49pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret
50</command>
51</client>
52
53#
54# Verify data after the test has been "shot"
55<verify>
56<protocol>
57CAPA
58AUTH CRAM-MD5
59*
60AUTH PLAIN
61AHVzZXIAc2VjcmV0
62RETR %TESTNUMBER
63QUIT
64</protocol>
65</verify>
66</testcase>
67