Hi,
No, I did try:
prov.addNTLMCredentials("user","passwd",null,-1,"hostname","domain");
prov.addNTLMCredentials("user","passwd",null,-1," ","domain");
prov.addNTLMCredentials("user","passwd",null,-1," ","");
prov.addNTLMCredentials("user","passwd",null,-1,"hostname","");
prov.addNTLMCredentials("domain\user","passwd",null,-1," ","");
prov.addNTLMCredentials("domain\user","passwd",null,-1,"hostname","");
none of the above did work:
[invoke] <P><B>Description:</B> You are not authorized to view this page due
to invalid authentication headers.
[invoke] <P><B>Error Code:</B> 0x80070005
Since I am running vista I tried it with in elevated mode and without - doesn't
matter - doesn’t work.
Thanks,
Rainer
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Marc Guillemot
Gesendet: Freitag, 19. Oktober 2007 12:10
An: [email protected]
Betreff: Re: AW: [Webtest] NTML (integrated) Auth
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Michael
> Habbert
> Gesendet: Donnerstag, 18. Oktober 2007 07:59
> An: [email protected]
> 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?
>
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest