Authentication failing for name in different domain

Jared Zielinski <[email protected]> Thu, 13 Aug 2009 17:53:20 +0000
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
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?
Thanks,Jared
_________________________________________________________________
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1

------------------------------------------------------------------------------
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