1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP NTLM auth 7</keywords> 8</info> 9# Server-side 10<reply> 11 12# This is supposed to be returned when the server gets a first 13# Authorization: NTLM line passed-in from the client 14<data1001> 15HTTP/1.1 401 Now gimme that second request of crap 16Server: Microsoft-IIS/5.0 17Content-Length: 34 18Content-Type: text/html; charset=iso-8859-1 19WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 20 21This is not the real page either! 22</data1001> 23 24# This is supposed to be returned when the server gets the second 25# Authorization: NTLM line passed-in from the client 26<data1002> 27HTTP/1.1 401 You give me wrong password 28Server: Microsoft-IIS/5.0 29WWW-Authenticate: NTLM 30Content-Length: 46 31Content-Type: text/html; charset=iso-8859-1 32 33Wrong password dude. Get it fixed and return. 34</data1002> 35 36<datacheck> 37HTTP/1.1 401 Now gimme that second request of crap 38Server: Microsoft-IIS/5.0 39Content-Length: 34 40Content-Type: text/html; charset=iso-8859-1 41WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 42 43HTTP/1.1 401 You give me wrong password 44Server: Microsoft-IIS/5.0 45WWW-Authenticate: NTLM 46Content-Length: 46 47Content-Type: text/html; charset=iso-8859-1 48 49Wrong password dude. Get it fixed and return. 50</datacheck> 51 52</reply> 53 54# Client-side 55<client> 56<features> 57NTLM 58!SSPI 59</features> 60<server> 61http 62</server> 63 <name> 64HTTP with NTLM authorization and wrong password 65 </name> 66 <setenv> 67# we force our own host name, in order to make the test machine independent 68CURL_GETHOSTNAME=curlhost 69# we try to use the LD_PRELOAD hack, if not a debug build 70LD_PRELOAD=%PWD/libtest/.libs/libhostname.so 71 </setenv> 72 <command> 73http://%HOSTIP:%HTTPPORT/68 -u testuser:testpass --ntlm 74</command> 75<precheck> 76chkhostname curlhost 77</precheck> 78</client> 79 80# Verify data after the test has been "shot" 81<verify> 82<strip> 83^User-Agent:.* 84</strip> 85<protocol> 86GET /68 HTTP/1.1 87Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 88User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 89Host: %HOSTIP:%HTTPPORT 90Accept: */* 91 92GET /68 HTTP/1.1 93Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAFuu0VIvKeMdPwjDPk7eAnwxMjM0NTY3OC1uDhL9DbZXt27JqdXMDkABAQAAAAAAAACAPtXesZ0BMTIzNDU2NzgAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA== 94User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 95Host: %HOSTIP:%HTTPPORT 96Accept: */* 97 98</protocol> 99</verify> 100</testcase> 101