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 | |
| 13 | # This is supposed to be returned when the server gets a first |
| 14 | # Authorization: NTLM line passed-in from the client |
| 15 | <data1001> |
| 16 | HTTP/1.1 401 Now gimme that second request of crap
|
| 17 | Server: Microsoft-IIS/5.0
|
| 18 | Content-Length: 34
|
| 19 | Content-Type: text/html; charset=iso-8859-1
|
| 20 | WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
| 21 |
|
| 22 | This is not the real page either! |
| 23 | </data1001> |
| 24 | |
| 25 | # This is supposed to be returned when the server gets the second |
| 26 | # Authorization: NTLM line passed-in from the client |
| 27 | <data1002> |
| 28 | HTTP/1.1 401 You give me wrong password
|
| 29 | Server: Microsoft-IIS/5.0
|
| 30 | WWW-Authenticate: NTLM
|
| 31 | Content-Length: 46
|
| 32 | Content-Type: text/html; charset=iso-8859-1
|
| 33 |
|
| 34 | Wrong password dude. Get it fixed and return. |
| 35 | </data1002> |
| 36 | |
| 37 | <datacheck> |
| 38 | HTTP/1.1 401 Now gimme that second request of crap
|
| 39 | Server: Microsoft-IIS/5.0
|
| 40 | Content-Length: 34
|
| 41 | Content-Type: text/html; charset=iso-8859-1
|
| 42 | WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
| 43 |
|
| 44 | HTTP/1.1 401 You give me wrong password
|
| 45 | Server: Microsoft-IIS/5.0
|
| 46 | WWW-Authenticate: NTLM
|
| 47 | Content-Length: 46
|
| 48 | Content-Type: text/html; charset=iso-8859-1
|
| 49 |
|
| 50 | Wrong password dude. Get it fixed and return. |
| 51 | </datacheck> |
| 52 | |
| 53 | </reply> |
| 54 | |
| 55 | # Client-side |
| 56 | <client> |
| 57 | <features> |
| 58 | NTLM |
| 59 | SSL |
| 60 | !SSPI |
| 61 | </features> |
| 62 | <server> |
| 63 | http |
| 64 | </server> |
| 65 | <name> |
| 66 | HTTP with NTLM authorization and wrong password |
| 67 | </name> |
| 68 | <command> |
| 69 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --ntlm |
| 70 | </command> |
| 71 | </client> |
| 72 | |
| 73 | # Verify data after the test has been "shot" |
| 74 | <verify> |
| 75 | <protocol> |
| 76 | GET /%TESTNUMBER HTTP/1.1
|
| 77 | Host: %HOSTIP:%HTTPPORT
|
| 78 | Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
| 79 | User-Agent: curl/%VERSION
|
| 80 | Accept: */*
|
| 81 |
|
| 82 | GET /%TESTNUMBER HTTP/1.1
|
| 83 | Host: %HOSTIP:%HTTPPORT
|
| 84 | Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
|
| 85 | User-Agent: curl/%VERSION
|
| 86 | Accept: */*
|
| 87 |
|
| 88 | </protocol> |
| 89 | </verify> |
| 90 | </testcase> |