Re: Help with authentication
Sean Tiley <[email protected]> Tue, 25 Nov 2014 12:59:50 -0500
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <CA+v9W_MeuCz0zpMWABLykNg2d0BO8f6Yb5ODYM70rQwGSmvDRw@mail.gmail.com> |
Thank you for the quick response Ouray.
I used Fiddler2 to inspect the headers and I saw the following
Authorization: NTLM TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==
I addedthe followong to the default headers
NVPair('Authorization','NTLM
TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==')
And I am still getting http 401 on all responses, is there something else?
Sorry I do not really understand the header stuff..
Any help is appreciated
Sean
On Tue, Nov 25, 2014 at 10:09 AM, Ouray Viney <[email protected]> wrote:
> Hi,
>
> Welcome to the Grinder community.
>
> Some recommendations:
>
> Step 1)
>
> I highly recommend you try configuring your browser to use an HTTP
> debugging proxy. Run the test case manually through the browser, observe
> and inspect the traffic that shows up. It is possible that Grinder is not
> recording the required authentication tokens.
>
> Step 2)
>
> Run your script, though it is failing and compare the manual request in
> the HTTP debugging proxy to the one your script generated. I am sure
> you'll find the issue, likely just a header or something similar.
>
> HTH,
>
> Ouray
>
> On Tue, Nov 25, 2014 at 9:39 AM, Sean Tiley <[email protected]> wrote:
>
>> Hello, I am struggling with load testing a site.
>> I am using the Grinder (3.11) to successfully test several other sites
>> but I am having difficulty with one particular site that requires
>> authentication, (NTLM I think). The site requires authorization - when one
>> first browses to the site - the browser opens a pop up that requires a
>> username and password to be entered (my AD credentials).
>>
>> I tried recording a script using the TCPProxy as described on the Grinder
>> FAQ here but no luck (http://grinder.sourceforge.net/faq.html#spnego) I
>> just get the 401 - Unauthorized response when I run the recorded script.
>>
>> Manually, in Firefox or Chrome I can create the url as follows
>> http://USERNAME:PASSWORD@accomtstsrv/ and I am not presented with the
>> authentication prompt.
>>
>> I tried editing the recorded script to pass the username and password in
>> the URL as above but am still getting 401-Unauthorized.
>>
>> I would appreciate any help if someone has been able to solve this issue
>>
>> Thanks
>> --
>> Sean Tiley
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>> _______________________________________________
>> grinder-use mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/grinder-use
>>
>>
>
>
> --
> Ouray Viney
> http://www.viney.ca
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> grinder-use mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/grinder-use
>
>
--
Sean Tiley
[email protected]
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use