xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | HTTP NTLM auth |
| 7 | NTLM |
| 8 | </keywords> |
| 9 | </info> |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | HTTP/1.1 401 Authorization Required swsclose
|
| 14 | Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
| 15 | WWW-Authenticate: Basic
|
| 16 | WWW-Authenticate: Wild-and-crazy
|
| 17 | WWW-Authenticate: NTLM
|
| 18 | Content-Type: text/html; charset=iso-8859-1
|
| 19 | Content-Length: 26
|
| 20 |
|
| 21 | This is not the real page |
| 22 | </data> |
| 23 | |
| 24 | # This is supposed to be returned when the server gets a first |
| 25 | # Authorization: NTLM line passed-in from the client |
| 26 | <data1001> |
| 27 | HTTP/1.1 401 Now gimme that second request of crap
|
| 28 | Server: Microsoft-IIS/5.0
|
| 29 | Content-Length: 34
|
| 30 | Content-Type: text/html; charset=iso-8859-1
|
| 31 | WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
| 32 |
|
| 33 | This is not the real page either! |
| 34 | </data1001> |
| 35 | |
| 36 | # This is supposed to be returned when the server gets the second |
| 37 | # Authorization: NTLM line passed-in from the client |
| 38 | <data1002> |
| 39 | HTTP/1.1 200 Things are fine in server land swsclose
|
| 40 | Server: Microsoft-IIS/5.0
|
| 41 | Content-Type: text/html; charset=iso-8859-1
|
| 42 | Content-Length: 32
|
| 43 |
|
| 44 | Finally, this is the real page! |
| 45 | </data1002> |
| 46 | |
| 47 | <datacheck> |
| 48 | HTTP/1.1 401 Authorization Required swsclose
|
| 49 | Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
| 50 | WWW-Authenticate: Basic
|
| 51 | WWW-Authenticate: Wild-and-crazy
|
| 52 | WWW-Authenticate: NTLM
|
| 53 | Content-Type: text/html; charset=iso-8859-1
|
| 54 | Content-Length: 26
|
| 55 |
|
| 56 | HTTP/1.1 401 Now gimme that second request of crap
|
| 57 | Server: Microsoft-IIS/5.0
|
| 58 | Content-Length: 34
|
| 59 | Content-Type: text/html; charset=iso-8859-1
|
| 60 | WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
| 61 |
|
| 62 | HTTP/1.1 200 Things are fine in server land swsclose
|
| 63 | Server: Microsoft-IIS/5.0
|
| 64 | Content-Type: text/html; charset=iso-8859-1
|
| 65 | Content-Length: 32
|
| 66 |
|
| 67 | Finally, this is the real page! |
| 68 | </datacheck> |
| 69 | |
| 70 | </reply> |
| 71 | |
| 72 | # Client-side |
| 73 | <client> |
| 74 | <features> |
| 75 | NTLM |
| 76 | SSL |
| 77 | !SSPI |
| 78 | </features> |
| 79 | <server> |
| 80 | http |
| 81 | </server> |
| 82 | <name> |
| 83 | HTTP with NTLM, Basic or Wild-and-crazy authorization |
| 84 | </name> |
| 85 | <command> |
| 86 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --anyauth |
| 87 | </command> |
| 88 | </client> |
| 89 | |
| 90 | # Verify data after the test has been "shot" |
| 91 | <verify> |
| 92 | <protocol> |
| 93 | GET /%TESTNUMBER HTTP/1.1
|
| 94 | Host: %HOSTIP:%HTTPPORT
|
| 95 | User-Agent: curl/%VERSION
|
| 96 | Accept: */*
|
| 97 |
|
| 98 | GET /%TESTNUMBER HTTP/1.1
|
| 99 | Host: %HOSTIP:%HTTPPORT
|
| 100 | Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
| 101 | User-Agent: curl/%VERSION
|
| 102 | Accept: */*
|
| 103 |
|
| 104 | GET /%TESTNUMBER HTTP/1.1
|
| 105 | Host: %HOSTIP:%HTTPPORT
|
| 106 | Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
|
| 107 | User-Agent: curl/%VERSION
|
| 108 | Accept: */*
|
| 109 |
|
| 110 | </protocol> |
| 111 | </verify> |
| 112 | </testcase> |