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 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> 43NTLM 44SSL 45!SSPI 46</features> 47 <name> 48POP3 NTLM authentication with SASL downgrade 49 </name> 50 <setenv> 51# we force our own host name, in order to make the test machine independent 52CURL_GETHOSTNAME=curlhost 53# we try to use the LD_PRELOAD hack, if not a debug build 54LD_PRELOAD=%PWD/libtest/.libs/libhostname.so 55 </setenv> 56 <command> 57pop3://%HOSTIP:%POP3PORT/880 -u user:secret 58</command> 59<precheck> 60chkhostname curlhost 61</precheck> 62</client> 63 64# 65# Verify data after the test has been "shot" 66<verify> 67<protocol> 68CAPA 69AUTH NTLM 70TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 71* 72AUTH PLAIN 73AHVzZXIAc2VjcmV0 74RETR 880 75QUIT 76</protocol> 77</verify> 78</testcase> 79