| 1 |
<info> |
| 2 |
<keywords> |
| 3 |
HTTP |
| 4 |
HTTP GET |
| 5 |
HTTP NTLM auth |
| 6 |
</keywords> |
| 7 |
</info> |
| 8 |
# Server-side |
| 9 |
<reply> |
| 10 |
<data> |
| 11 |
HTTP/1.1 401 Authorization Required swsclose |
| 12 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 13 |
WWW-Authenticate: Magic-Negotiate |
| 14 |
WWW-Authenticate: NTLM |
| 15 |
WWW-Authenticate: Basic realm="daniel" |
| 16 |
Content-Type: text/html; charset=iso-8859-1 |
| 17 |
Content-Length: 0 |
| 18 |
Connection: close |
| 19 |
|
| 20 |
</data> |
| 21 |
|
| 22 |
# This is supposed to be returned when the server gets a first |
| 23 |
# Authorization: NTLM line passed-in from the client |
| 24 |
<data1001> |
| 25 |
HTTP/1.1 401 Now gimme that second request of crap |
| 26 |
Server: Microsoft-IIS/5.0 |
| 27 |
Content-Length: 34 |
| 28 |
Content-Type: text/html; charset=iso-8859-1 |
| 29 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 30 |
|
| 31 |
This is not the real page either! |
| 32 |
</data1001> |
| 33 |
|
| 34 |
# This is supposed to be returned when the server gets the second |
| 35 |
# Authorization: NTLM line passed-in from the client |
| 36 |
<data1002> |
| 37 |
HTTP/1.1 200 Things are fine in server land swsclose |
| 38 |
Server: Microsoft-IIS/5.0 |
| 39 |
Content-Type: text/html; charset=iso-8859-1 |
| 40 |
|
| 41 |
Finally, this is the real page! |
| 42 |
</data1002> |
| 43 |
|
| 44 |
<datacheck> |
| 45 |
HTTP/1.1 401 Authorization Required swsclose |
| 46 |
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 |
| 47 |
WWW-Authenticate: Magic-Negotiate |
| 48 |
WWW-Authenticate: NTLM |
| 49 |
WWW-Authenticate: Basic realm="daniel" |
| 50 |
Content-Type: text/html; charset=iso-8859-1 |
| 51 |
Content-Length: 0 |
| 52 |
Connection: close |
| 53 |
|
| 54 |
HTTP/1.1 401 Now gimme that second request of crap |
| 55 |
Server: Microsoft-IIS/5.0 |
| 56 |
Content-Length: 34 |
| 57 |
Content-Type: text/html; charset=iso-8859-1 |
| 58 |
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== |
| 59 |
|
| 60 |
HTTP/1.1 200 Things are fine in server land swsclose |
| 61 |
Server: Microsoft-IIS/5.0 |
| 62 |
Content-Type: text/html; charset=iso-8859-1 |
| 63 |
|
| 64 |
Finally, this is the real page! |
| 65 |
</datacheck> |
| 66 |
|
| 67 |
</reply> |
| 68 |
|
| 69 |
# Client-side |
| 70 |
<client> |
| 71 |
<features> |
| 72 |
NTLM |
| 73 |
</features> |
| 74 |
<server> |
| 75 |
http |
| 76 |
</server> |
| 77 |
<name> |
| 78 |
HTTP with NTLM/Negotiate/Basic, anyauth and user with domain, with size 0 |
| 79 |
</name> |
| 80 |
<command> |
| 81 |
http://%HOSTIP:%HTTPPORT/91 --anyauth -u mydomain\\myself:secret |
| 82 |
</command> |
| 83 |
</client> |
| 84 |
|
| 85 |
# Verify data after the test has been "shot" |
| 86 |
<verify> |
| 87 |
<strip> |
| 88 |
^User-Agent:.* |
| 89 |
</strip> |
| 90 |
<protocol> |
| 91 |
GET /91 HTTP/1.1 |
| 92 |
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 |
| 93 |
Host: 127.0.0.1:%HTTPPORT |
| 94 |
Accept: */* |
| 95 |
|
| 96 |
GET /91 HTTP/1.1 |
| 97 |
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA= |
| 98 |
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 |
| 99 |
Host: 127.0.0.1:%HTTPPORT |
| 100 |
Accept: */* |
| 101 |
|
| 102 |
GET /91 HTTP/1.1 |
| 103 |
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAE4AAAAYABgAZgAAAAgACABAAAAABgAGAEgAAAAAAAAATgAAAAAAAAB+AAAAAYIAAG15ZG9tYWlubXlzZWxmwjImlHmYemDYVmFrmRFoVn3jfoYDE+7QLmWXF7FJDlDNWSItJ+RylXJGAJdepH4C |
| 104 |
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 |
| 105 |
Host: 127.0.0.1:%HTTPPORT |
| 106 |
Accept: */* |
| 107 |
|
| 108 |
</protocol> |
| 109 |
</verify> |