Re: Authentication failing for name in different domain

"Wolfgang Fahl" <[email protected]> Mon, 17 Aug 2009 13:32:34 +0200
Newsgroups gmane.comp.web.httpunit.devel
Organization BITPlan GmbH
Message-ID <[email protected]>
Dear Jared,

thank you for your mail
you wrote:
> I have a bit of httpunit code which uses setAuthentication to set the login name and password for 
> the site I'm running against. However...the name is on a domain we'll call DomainA and the 
> name we'll call MyName. If I were using my browser when logging in I would type 
> DomainA\MyName. When I run the app that uses httpunit I can just leave the domain blank 
> provided I'm running from DomainA because windows will default to DomainA as long as I'm on 
> it. The problem arises when I try running from DomainB. Now it will try authenticating using 
> DomainB\MyName which won't work because my name only authenticates through DomainA.
> How am I supposed to specify DomainA? I thought the realm parameter of setAuthentication 
> sounded promising but I didn't have any luck. I also tried setting the name as 
> "DomainA\MyName" but again no luck.
> Anyone know what I could be doing wrong or if this is even possible?

you might want to add a JUnit test to 
WebClientTest.java:
https://httpunit.svn.sourceforge.net/svnroot/httpunit/trunk/httpunit/test/com/meterware/httpunit/WebClientTest.java

to show what your issue is. It should then be pretty 
straightforward to see whether we need to fix httpunit 
or what other problem there might be with what you are 
trying to do.

Yours
  Wolfgang

BITPlan - smart solutions
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 2154 811-480, Fax +49 2154 811-481
Web: http://www.bitplan.de
bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, 
Geschäftsführer: Wolfgang Fahl

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop