113498266Sopenharmony_ci<testcase> 213498266Sopenharmony_ci<info> 313498266Sopenharmony_ci<keywords> 413498266Sopenharmony_ciHTTP 513498266Sopenharmony_ciHTTP GET 613498266Sopenharmony_ciHTTP Digest auth 713498266Sopenharmony_ciHTTP NTLM auth 813498266Sopenharmony_ciNTLM 913498266Sopenharmony_ci</keywords> 1013498266Sopenharmony_ci</info> 1113498266Sopenharmony_ci# Server-side 1213498266Sopenharmony_ci<reply> 1313498266Sopenharmony_ci 1413498266Sopenharmony_ci<!-- Alternate the order that Digest and NTLM headers appear in responses to 1513498266Sopenharmony_ciensure that the order doesn't matter. --> 1613498266Sopenharmony_ci 1713498266Sopenharmony_ci<!-- First request has Digest auth, wrong password --> 1813498266Sopenharmony_ci<data100> 1913498266Sopenharmony_ciHTTP/1.1 401 Need Digest or NTLM auth 2013498266Sopenharmony_ciServer: Microsoft-IIS/5.0 2113498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 2213498266Sopenharmony_ciContent-Length: 27 2313498266Sopenharmony_ciWWW-Authenticate: NTLM 2413498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="1" 2513498266Sopenharmony_ci 2613498266Sopenharmony_ciThis is not the real page! 2713498266Sopenharmony_ci</data100> 2813498266Sopenharmony_ci 2913498266Sopenharmony_ci<data1100> 3013498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password 3113498266Sopenharmony_ciServer: Microsoft-IIS/5.0 3213498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 3313498266Sopenharmony_ciContent-Length: 29 3413498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="2" 3513498266Sopenharmony_ciWWW-Authenticate: NTLM 3613498266Sopenharmony_ci 3713498266Sopenharmony_ciThis is a bad password page! 3813498266Sopenharmony_ci</data1100> 3913498266Sopenharmony_ci 4013498266Sopenharmony_ci<!-- Second request has NTLM auth, right password --> 4113498266Sopenharmony_ci<data200> 4213498266Sopenharmony_ciHTTP/1.1 401 Need Digest or NTLM auth (2) 4313498266Sopenharmony_ciServer: Microsoft-IIS/5.0 4413498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 4513498266Sopenharmony_ciContent-Length: 27 4613498266Sopenharmony_ciWWW-Authenticate: NTLM 4713498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="3" 4813498266Sopenharmony_ci 4913498266Sopenharmony_ciThis is not the real page! 5013498266Sopenharmony_ci</data200> 5113498266Sopenharmony_ci 5213498266Sopenharmony_ci<data1201> 5313498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate 5413498266Sopenharmony_ciServer: Microsoft-IIS/5.0 5513498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 5613498266Sopenharmony_ciContent-Length: 33 5713498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg= 5813498266Sopenharmony_ci 5913498266Sopenharmony_ciThis is still not the real page! 6013498266Sopenharmony_ci</data1201> 6113498266Sopenharmony_ci 6213498266Sopenharmony_ci<data1202> 6313498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land 6413498266Sopenharmony_ciServer: Microsoft-IIS/5.0 6513498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 6613498266Sopenharmony_ciContent-Length: 32 6713498266Sopenharmony_ci 6813498266Sopenharmony_ciFinally, this is the real page! 6913498266Sopenharmony_ci</data1202> 7013498266Sopenharmony_ci 7113498266Sopenharmony_ci<!-- Third request has Digest auth, wrong password --> 7213498266Sopenharmony_ci<data300> 7313498266Sopenharmony_ciHTTP/1.1 401 Need Digest or NTLM auth (3) 7413498266Sopenharmony_ciServer: Microsoft-IIS/5.0 7513498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 7613498266Sopenharmony_ciContent-Length: 27 7713498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="4" 7813498266Sopenharmony_ciWWW-Authenticate: NTLM 7913498266Sopenharmony_ci 8013498266Sopenharmony_ciThis is not the real page! 8113498266Sopenharmony_ci</data300> 8213498266Sopenharmony_ci 8313498266Sopenharmony_ci<data1300> 8413498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password (2) 8513498266Sopenharmony_ciServer: Microsoft-IIS/5.0 8613498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 8713498266Sopenharmony_ciContent-Length: 29 8813498266Sopenharmony_ciWWW-Authenticate: NTLM 8913498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="5" 9013498266Sopenharmony_ci 9113498266Sopenharmony_ciThis is a bad password page! 9213498266Sopenharmony_ci</data1300> 9313498266Sopenharmony_ci 9413498266Sopenharmony_ci<!-- Fourth request has NTLM auth, wrong password --> 9513498266Sopenharmony_ci<data400> 9613498266Sopenharmony_ciHTTP/1.1 401 Need Digest or NTLM auth (4) 9713498266Sopenharmony_ciServer: Microsoft-IIS/5.0 9813498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 9913498266Sopenharmony_ciContent-Length: 27 10013498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="6" 10113498266Sopenharmony_ciWWW-Authenticate: NTLM 10213498266Sopenharmony_ci 10313498266Sopenharmony_ciThis is not the real page! 10413498266Sopenharmony_ci</data400> 10513498266Sopenharmony_ci 10613498266Sopenharmony_ci<data1401> 10713498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (2) 10813498266Sopenharmony_ciServer: Microsoft-IIS/5.0 10913498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 11013498266Sopenharmony_ciContent-Length: 33 11113498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg= 11213498266Sopenharmony_ci 11313498266Sopenharmony_ciThis is still not the real page! 11413498266Sopenharmony_ci</data1401> 11513498266Sopenharmony_ci 11613498266Sopenharmony_ci<data1402> 11713498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password (3) 11813498266Sopenharmony_ciServer: Microsoft-IIS/5.0 11913498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 12013498266Sopenharmony_ciContent-Length: 29 12113498266Sopenharmony_ciWWW-Authenticate: NTLM 12213498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="7" 12313498266Sopenharmony_ci 12413498266Sopenharmony_ciThis is a bad password page! 12513498266Sopenharmony_ci</data1402> 12613498266Sopenharmony_ci 12713498266Sopenharmony_ci<!-- Fifth request has NTLM auth, right password --> 12813498266Sopenharmony_ci<data500> 12913498266Sopenharmony_ciHTTP/1.1 401 Need Digest or NTLM auth (5) 13013498266Sopenharmony_ciServer: Microsoft-IIS/5.0 13113498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 13213498266Sopenharmony_ciContent-Length: 27 13313498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="8" 13413498266Sopenharmony_ciWWW-Authenticate: NTLM 13513498266Sopenharmony_ci 13613498266Sopenharmony_ciThis is not the real page! 13713498266Sopenharmony_ci</data500> 13813498266Sopenharmony_ci 13913498266Sopenharmony_ci<data1501> 14013498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (3) 14113498266Sopenharmony_ciServer: Microsoft-IIS/5.0 14213498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 14313498266Sopenharmony_ciContent-Length: 33 14413498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg= 14513498266Sopenharmony_ci 14613498266Sopenharmony_ciThis is still not the real page! 14713498266Sopenharmony_ci</data1501> 14813498266Sopenharmony_ci 14913498266Sopenharmony_ci<data1502> 15013498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land (2) 15113498266Sopenharmony_ciServer: Microsoft-IIS/5.0 15213498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 15313498266Sopenharmony_ciContent-Length: 32 15413498266Sopenharmony_ci 15513498266Sopenharmony_ciFinally, this is the real page! 15613498266Sopenharmony_ci</data1502> 15713498266Sopenharmony_ci 15813498266Sopenharmony_ci<datacheck> 15913498266Sopenharmony_ciHTTP/1.1 401 Need Digest or NTLM auth 16013498266Sopenharmony_ciServer: Microsoft-IIS/5.0 16113498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 16213498266Sopenharmony_ciContent-Length: 27 16313498266Sopenharmony_ciWWW-Authenticate: NTLM 16413498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="1" 16513498266Sopenharmony_ci 16613498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password 16713498266Sopenharmony_ciServer: Microsoft-IIS/5.0 16813498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 16913498266Sopenharmony_ciContent-Length: 29 17013498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="2" 17113498266Sopenharmony_ciWWW-Authenticate: NTLM 17213498266Sopenharmony_ci 17313498266Sopenharmony_ciThis is a bad password page! 17413498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate 17513498266Sopenharmony_ciServer: Microsoft-IIS/5.0 17613498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 17713498266Sopenharmony_ciContent-Length: 33 17813498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg= 17913498266Sopenharmony_ci 18013498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land 18113498266Sopenharmony_ciServer: Microsoft-IIS/5.0 18213498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 18313498266Sopenharmony_ciContent-Length: 32 18413498266Sopenharmony_ci 18513498266Sopenharmony_ciFinally, this is the real page! 18613498266Sopenharmony_ciHTTP/1.1 401 Need Digest or NTLM auth (3) 18713498266Sopenharmony_ciServer: Microsoft-IIS/5.0 18813498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 18913498266Sopenharmony_ciContent-Length: 27 19013498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="4" 19113498266Sopenharmony_ciWWW-Authenticate: NTLM 19213498266Sopenharmony_ci 19313498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password (2) 19413498266Sopenharmony_ciServer: Microsoft-IIS/5.0 19513498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 19613498266Sopenharmony_ciContent-Length: 29 19713498266Sopenharmony_ciWWW-Authenticate: NTLM 19813498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="5" 19913498266Sopenharmony_ci 20013498266Sopenharmony_ciThis is a bad password page! 20113498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (2) 20213498266Sopenharmony_ciServer: Microsoft-IIS/5.0 20313498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 20413498266Sopenharmony_ciContent-Length: 33 20513498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg= 20613498266Sopenharmony_ci 20713498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password (3) 20813498266Sopenharmony_ciServer: Microsoft-IIS/5.0 20913498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 21013498266Sopenharmony_ciContent-Length: 29 21113498266Sopenharmony_ciWWW-Authenticate: NTLM 21213498266Sopenharmony_ciWWW-Authenticate: Digest realm="testrealm", nonce="7" 21313498266Sopenharmony_ci 21413498266Sopenharmony_ciThis is a bad password page! 21513498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (3) 21613498266Sopenharmony_ciServer: Microsoft-IIS/5.0 21713498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 21813498266Sopenharmony_ciContent-Length: 33 21913498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg= 22013498266Sopenharmony_ci 22113498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land (2) 22213498266Sopenharmony_ciServer: Microsoft-IIS/5.0 22313498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1 22413498266Sopenharmony_ciContent-Length: 32 22513498266Sopenharmony_ci 22613498266Sopenharmony_ciFinally, this is the real page! 22713498266Sopenharmony_ci</datacheck> 22813498266Sopenharmony_ci 22913498266Sopenharmony_ci</reply> 23013498266Sopenharmony_ci 23113498266Sopenharmony_ci# Client-side 23213498266Sopenharmony_ci<client> 23313498266Sopenharmony_ci<features> 23413498266Sopenharmony_ciNTLM 23513498266Sopenharmony_ciSSL 23613498266Sopenharmony_ci!SSPI 23713498266Sopenharmony_ci</features> 23813498266Sopenharmony_ci<server> 23913498266Sopenharmony_cihttp 24013498266Sopenharmony_ci</server> 24113498266Sopenharmony_ci<tool> 24213498266Sopenharmony_cilibauthretry 24313498266Sopenharmony_ci</tool> 24413498266Sopenharmony_ci 24513498266Sopenharmony_ci<name> 24613498266Sopenharmony_ciHTTP authorization retry (Digest switching to NTLM) 24713498266Sopenharmony_ci</name> 24813498266Sopenharmony_ci<command> 24913498266Sopenharmony_cihttp://%HOSTIP:%HTTPPORT/%TESTNUMBER digest ntlm 25013498266Sopenharmony_ci</command> 25113498266Sopenharmony_ci</client> 25213498266Sopenharmony_ci 25313498266Sopenharmony_ci# Verify data after the test has been "shot" 25413498266Sopenharmony_ci<verify> 25513498266Sopenharmony_ci<protocol> 25613498266Sopenharmony_ciGET /%TESTNUMBER0100 HTTP/1.1 25713498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 25813498266Sopenharmony_ciAccept: */* 25913498266Sopenharmony_ci 26013498266Sopenharmony_ciGET /%TESTNUMBER0100 HTTP/1.1 26113498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 26213498266Sopenharmony_ciAuthorization: Digest username="testuser", realm="testrealm", nonce="1", uri="/%TESTNUMBER0100", response="53c80666f5e3a4a55f92a66aaf0078bb" 26313498266Sopenharmony_ciAccept: */* 26413498266Sopenharmony_ci 26513498266Sopenharmony_ciGET /%TESTNUMBER0200 HTTP/1.1 26613498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 26713498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 26813498266Sopenharmony_ciAccept: */* 26913498266Sopenharmony_ci 27013498266Sopenharmony_ciGET /%TESTNUMBER0200 HTTP/1.1 27113498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 27213498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04= 27313498266Sopenharmony_ciAccept: */* 27413498266Sopenharmony_ci 27513498266Sopenharmony_ciGET /%TESTNUMBER0300 HTTP/1.1 27613498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 27713498266Sopenharmony_ciAccept: */* 27813498266Sopenharmony_ci 27913498266Sopenharmony_ciGET /%TESTNUMBER0300 HTTP/1.1 28013498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 28113498266Sopenharmony_ciAuthorization: Digest username="testuser", realm="testrealm", nonce="4", uri="/%TESTNUMBER0300", response="1aa5d90da9803ca12d04b24e0f19476e" 28213498266Sopenharmony_ciAccept: */* 28313498266Sopenharmony_ci 28413498266Sopenharmony_ciGET /%TESTNUMBER0400 HTTP/1.1 28513498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 28613498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 28713498266Sopenharmony_ciAccept: */* 28813498266Sopenharmony_ci 28913498266Sopenharmony_ciGET /%TESTNUMBER0400 HTTP/1.1 29013498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 29113498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04= 29213498266Sopenharmony_ciAccept: */* 29313498266Sopenharmony_ci 29413498266Sopenharmony_ciGET /%TESTNUMBER0500 HTTP/1.1 29513498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 29613498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 29713498266Sopenharmony_ciAccept: */* 29813498266Sopenharmony_ci 29913498266Sopenharmony_ciGET /%TESTNUMBER0500 HTTP/1.1 30013498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 30113498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04= 30213498266Sopenharmony_ciAccept: */* 30313498266Sopenharmony_ci 30413498266Sopenharmony_ci</protocol> 30513498266Sopenharmony_ci</verify> 30613498266Sopenharmony_ci</testcase> 307