1 <testcase> 2 <info> 3 <keywords> 4 SMTP 5 SASL 6 SASL AUTH NTLM 7 SASL-IR 8 RFC4954 9 </keywords> 10 </info> 11 12 # 13 # Server-side 14 <reply> 15 <servercmd> 16 AUTH NTLM 17 REPLY AUTH 334 TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 18 REPLY TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAL9LNW5+nkyHZRmyFaL/LJ4xMjM0MjIzNGUCyhgQ9hw6eWAT13EbDa0BAQAAAAAAAACAPtXesZ0BMTIzNDIyMzQAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA== 235 Authenticated 19 </servercmd> 20 </reply> 21 22 # 23 # Client-side 24 <client> 25 <server> 26 smtp 27 </server> 28 <features> 29 NTLM 30 !SSPI 31 debug 32 </features> 33 <name> 34 SMTP NTLM authentication with initial response 35 </name> 36 <setenv> 37 # we force our own host name, in order to make the test machine independent 38 CURL_GETHOSTNAME=curlhost 39 # we try to use the LD_PRELOAD hack, if not a debug build 40 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so 41 </setenv> 42 <stdin> 43 mail body 44 </stdin> 45 <command> 46 smtp://%HOSTIP:%SMTPPORT/921 --mail-rcpt recipient (a] example.com --mail-from sender (a] example.com -u testuser:testpass --sasl-ir -T - 47 </command> 48 <precheck> 49 chkhostname curlhost 50 </precheck> 51 </client> 52 53 # 54 # Verify data after the test has been "shot" 55 <verify> 56 <protocol> 57 EHLO 921 58 AUTH NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 59 TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAL9LNW5+nkyHZRmyFaL/LJ4xMjM0MjIzNGUCyhgQ9hw6eWAT13EbDa0BAQAAAAAAAACAPtXesZ0BMTIzNDIyMzQAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA== 60 MAIL FROM:<sender (a] example.com> 61 RCPT TO:<recipient (a] example.com> 62 DATA 63 QUIT 64 </protocol> 65 <upload> 66 mail body 67 . 68 </upload> 69 </verify> 70 </testcase> 71