1<testcase> 2<info> 3<keywords> 4POP3 5POP3 AUTH NTLM 6POP3 AUTH PLAIN 7SASL DOWNGRADE 8RFC1734 9RFC5034 10</keywords> 11</info> 12 13# 14# Server-side 15<reply> 16<servercmd> 17AUTH NTLM PLAIN 18REPLY "AUTH NTLM" + 19REPLY TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= + Rubbish 20REPLY * -ERR AUTH exchange cancelled by client 21REPLY "AUTH PLAIN" + 22REPLY dXNlcgB1c2VyAHNlY3JldA== +OK Login successful 23</servercmd> 24<data> 25From: me@somewhere 26To: fake@nowhere 27 28body 29 30-- 31 yours sincerely 32</data> 33</reply> 34 35# 36# Client-side 37<client> 38<server> 39pop3 40</server> 41<features> 42NTLM 43!SSPI 44</features> 45 <name> 46POP3 NTLM authentication with SASL downgrade 47 </name> 48 <setenv> 49# we force our own host name, in order to make the test machine independent 50CURL_GETHOSTNAME=curlhost 51# we try to use the LD_PRELOAD hack, if not a debug build 52LD_PRELOAD=%PWD/libtest/.libs/libhostname.so 53 </setenv> 54 <command> 55pop3://%HOSTIP:%POP3PORT/880 -u user:secret 56</command> 57<precheck> 58chkhostname curlhost 59</precheck> 60</client> 61 62# 63# Verify data after the test has been "shot" 64<verify> 65<protocol> 66CAPA 67AUTH NTLM 68TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 69* 70AUTH PLAIN 71dXNlcgB1c2VyAHNlY3JldA== 72RETR 880 73QUIT 74</protocol> 75</verify> 76</testcase> 77