• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4POP3
5SASL
6SASL AUTH NTLM
7SASL AUTH PLAIN
8SASL DOWNGRADE
9RFC1734
10RFC5034
11</keywords>
12</info>
13
14#
15# Server-side
16<reply>
17<servercmd>
18AUTH NTLM PLAIN
19REPLY "AUTH NTLM" +
20REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish
21REPLY * -ERR AUTH exchange cancelled by client
22REPLY "AUTH PLAIN" +
23REPLY dXNlcgB1c2VyAHNlY3JldA== +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>
43NTLM
44!SSPI
45</features>
46 <name>
47POP3 NTLM authentication with SASL downgrade
48 </name>
49 <setenv>
50# we force our own host name, in order to make the test machine independent
51CURL_GETHOSTNAME=curlhost
52# we try to use the LD_PRELOAD hack, if not a debug build
53LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
54 </setenv>
55 <command>
56pop3://%HOSTIP:%POP3PORT/880 -u user:secret
57</command>
58<precheck>
59chkhostname curlhost
60</precheck>
61</client>
62
63#
64# Verify data after the test has been "shot"
65<verify>
66<protocol>
67CAPA
68AUTH NTLM
69TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
70*
71AUTH PLAIN
72dXNlcgB1c2VyAHNlY3JldA==
73RETR 880
74QUIT
75</protocol>
76</verify>
77</testcase>
78