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 Basic auth |
| 7 | HTTP NTLM auth |
| 8 | flaky |
| 9 | NTLM |
| 10 | </keywords> |
| 11 | </info> |
| 12 | # Server-side |
| 13 | <reply> |
| 14 | |
| 15 | <!-- Basic auth --> |
| 16 | <data100> |
| 17 | HTTP/1.1 401 Need Basic or NTLM auth
|
| 18 | Server: Microsoft-IIS/5.0
|
| 19 | Content-Type: text/html; charset=iso-8859-1
|
| 20 | Content-Length: 29
|
| 21 | WWW-Authenticate: NTLM
|
| 22 | WWW-Authenticate: Basic realm="testrealm"
|
| 23 |
|
| 24 | This is a bad password page! |
| 25 | </data100> |
| 26 | |
| 27 | <!-- NTLM auth --> |
| 28 | <data200> |
| 29 | HTTP/1.1 401 Need Basic or NTLM auth (2)
|
| 30 | Server: Microsoft-IIS/5.0
|
| 31 | Content-Type: text/html; charset=iso-8859-1
|
| 32 | Content-Length: 27
|
| 33 | WWW-Authenticate: NTLM
|
| 34 | WWW-Authenticate: Basic realm="testrealm"
|
| 35 |
|
| 36 | This is not the real page! |
| 37 | </data200> |
| 38 | |
| 39 | <data1201> |
| 40 | HTTP/1.1 401 NTLM intermediate (2)
|
| 41 | Server: Microsoft-IIS/5.0
|
| 42 | Content-Type: text/html; charset=iso-8859-1
|
| 43 | Content-Length: 33
|
| 44 | WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
|
| 45 |
|
| 46 | This is still not the real page! |
| 47 | </data1201> |
| 48 | |
| 49 | <data1202> |
| 50 | HTTP/1.1 200 Things are fine in server land
|
| 51 | Server: Microsoft-IIS/5.0
|
| 52 | Content-Type: text/html; charset=iso-8859-1
|
| 53 | Content-Length: 32
|
| 54 |
|
| 55 | Finally, this is the real page! |
| 56 | </data1202> |
| 57 | |
| 58 | <datacheck> |
| 59 | Data connection 0: 228 |
| 60 | Data connection 1: 228 |
| 61 | Data connection 2: 402 |
| 62 | </datacheck> |
| 63 | |
| 64 | </reply> |
| 65 | |
| 66 | # Client-side |
| 67 | <client> |
| 68 | <features> |
| 69 | NTLM |
| 70 | SSL |
| 71 | !SSPI |
| 72 | </features> |
| 73 | <server> |
| 74 | http |
| 75 | </server> |
| 76 | <tool> |
| 77 | libntlmconnect |
| 78 | </tool> |
| 79 | |
| 80 | <name> |
| 81 | NTLM connection mapping |
| 82 | </name> |
| 83 | <command> |
| 84 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| 85 | </command> |
| 86 | </client> |
| 87 | |
| 88 | # Verify data after the test has been "shot" |
| 89 | <verify> |
| 90 | <protocol> |
| 91 | GET /%TESTNUMBER0100 HTTP/1.1
|
| 92 | Host: %HOSTIP:%HTTPPORT
|
| 93 | Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
|
| 94 | Accept: */*
|
| 95 |
|
| 96 | GET /%TESTNUMBER0100 HTTP/1.1
|
| 97 | Host: %HOSTIP:%HTTPPORT
|
| 98 | Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
|
| 99 | Accept: */*
|
| 100 |
|
| 101 | GET /%TESTNUMBER0200 HTTP/1.1
|
| 102 | Host: %HOSTIP:%HTTPPORT
|
| 103 | Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
| 104 | Accept: */*
|
| 105 |
|
| 106 | GET /%TESTNUMBER0200 HTTP/1.1
|
| 107 | Host: %HOSTIP:%HTTPPORT
|
| 108 | Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
|
| 109 | Accept: */*
|
| 110 |
|
| 111 | </protocol> |
| 112 | </verify> |
| 113 | </testcase> |