AW: [Webtest] NTML (integrated) Auth

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Fri, 19 Oct 2007 12:09:40 +0200


Hi Rainer,

could you make it working?

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com

Rainer Worbis wrote:
> Hi Michael,
> 
> the main problem is that the authentication is not working (getting an 401 error)
> 
>    [invoke]  INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) - ntlm authentication scheme selected
>    [invoke]  INFO (org.apache.commons.httpclient.HttpMethodDirector) - No credentials available for NTLM <any realm>@localhost:80
>    [invoke]  INFO (com.gargoylesoftware.htmlunit.WebClient) - statusCode=[401] contentType=[text/html]
> 
> I tried setting the  CredentialsProvider with the following groovy script 
> 				<groovy>
> 					def prov = new com.gargoylesoftware.htmlunit.DefaultCredentialsProvider();
> 					prov.addNTLMCredentials("xxx","yyy","",-1,"zzz","abc");
> 					def webClient = step.context.webClient;
> 					webClient.setCredentialsProvider(prov);
> 				</groovy>
> 
> And get the following response:
> 
>    [invoke]  INFO (org.apache.commons.httpclient.auth.AuthChallengeProcessor) - ntlm authentication scheme selected
>    [invoke]  INFO (org.apache.commons.httpclient.HttpMethodDirector) - No credentials available for NTLM <any realm>@localhost:80
>    [invoke]  INFO (com.gargoylesoftware.htmlunit.WebClient) - statusCode=[401] contentType=[text/html]
> 
> So is there anything else I can try?
> 
> Rainer
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] Im Auftrag von Michael Habbert
> Gesendet: Donnerstag, 18. Oktober 2007 07:59
> An: webtest@lists.canoo.com
> Betreff: Re: [Webtest] NTML (integrated) Auth
> 
> Rainer Worbis wrote:
>>
>> Hi,
>>
>>  
>>
>> I have an webapp to thest which runs within IIS70 and Integrated 
>> Authentifiction. I tried all the suggestions I found in the newsgroup 
>> but none of them did work. Does anyone know if this should work at all?
> [...]
> Why not? The webserver/applicationserver does'nt matter.
> If your Web-application works for a browser it should also work with webtest. But anyway what is the 
>   problem you are facing?
>