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: Magic-Negotiate
|
| 16 | WWW-Authenticate: NTLM
|
| 17 | WWW-Authenticate: Basic realm="daniel"
|
| 18 | Content-Type: text/html; charset=iso-8859-1
|
| 19 | Content-Length: 0
|
| 20 | Connection: close
|
| 21 |
|
| 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: Magic-Negotiate
|
| 51 | WWW-Authenticate: NTLM
|
| 52 | WWW-Authenticate: Basic realm="daniel"
|
| 53 | Content-Type: text/html; charset=iso-8859-1
|
| 54 | Content-Length: 0
|
| 55 | Connection: close
|
| 56 |
|
| 57 | HTTP/1.1 401 Now gimme that second request of crap
|
| 58 | Server: Microsoft-IIS/5.0
|
| 59 | Content-Length: 34
|
| 60 | Content-Type: text/html; charset=iso-8859-1
|
| 61 | WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
| 62 |
|
| 63 | HTTP/1.1 200 Things are fine in server land swsclose
|
| 64 | Server: Microsoft-IIS/5.0
|
| 65 | Content-Type: text/html; charset=iso-8859-1
|
| 66 | Content-Length: 32
|
| 67 |
|
| 68 | Finally, this is the real page! |
| 69 | </datacheck> |
| 70 | |
| 71 | </reply> |
| 72 | |
| 73 | # Client-side |
| 74 | <client> |
| 75 | <features> |
| 76 | NTLM |
| 77 | SSL |
| 78 | !SSPI |
| 79 | </features> |
| 80 | <server> |
| 81 | http |
| 82 | </server> |
| 83 | <name> |
| 84 | HTTP with NTLM/Negotiate/Basic, anyauth and user with domain, with size 0 |
| 85 | </name> |
| 86 | <command> |
| 87 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER --anyauth -u mydomain\\myself:secret |
| 88 | </command> |
| 89 | </client> |
| 90 | |
| 91 | # Verify data after the test has been "shot" |
| 92 | <verify> |
| 93 | <protocol> |
| 94 | GET /%TESTNUMBER HTTP/1.1
|
| 95 | Host: %HOSTIP:%HTTPPORT
|
| 96 | User-Agent: curl/%VERSION
|
| 97 | Accept: */*
|
| 98 |
|
| 99 | GET /%TESTNUMBER HTTP/1.1
|
| 100 | Host: %HOSTIP:%HTTPPORT
|
| 101 | Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
| 102 | User-Agent: curl/%VERSION
|
| 103 | Accept: */*
|
| 104 |
|
| 105 | GET /%TESTNUMBER HTTP/1.1
|
| 106 | Host: %HOSTIP:%HTTPPORT
|
| 107 | Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAgACABwAAAABgAGAHgAAAALAAsAfgAAAAAAAAAAAAAAhoIBAMIyJpR5mHpg2FZha5kRaFZ9436GAxPu0C5llxexSQ5QzVkiLSfkcpVyRgCXXqR+Am15ZG9tYWlubXlzZWxmV09SS1NUQVRJT04=
|
| 108 | User-Agent: curl/%VERSION
|
| 109 | Accept: */*
|
| 110 |
|
| 111 | </protocol> |
| 112 | </verify> |
| 113 | </testcase> |