in reply to wrong domain name when using LWP::Authen::Ntlm

I'm running into a VERY similar issue, though I am *not* specifying NTLMv2 as the original poster was doing. I'd really appreciate any pointers anyone could offer. I'm really at a loss here.

Using the original code above as a base, but fixing the syntax errors... In my code, I'm clearly setting a specific domain. 'mydom' -- however after looking at the WireShark capture, I can see the NTLM challenge back from the webserver with a Target Name of 'differentdomain'. The GET then sends back 'differentdomain\User1' instead of the specified 'mydom\User1'. Any thoughts???

#!/usr/bin/perl -w use LWP::UserAgent; use HTTP::Request::Common; use LWP::Debug qw(+); use Authen::NTLM; use strict; use warnings; my $url = 'http://mywebserver.com/Path/Path2/MyFile.htm'; # Set up the ntlm client and then the base64 encoded ntlm handshake me +ssage my $ua = LWP::UserAgent->new(keep_alive=>1); my $host = 'mywebserver.com:80'; my $uname = 'mydom\User1'; my $psswd = 'test1234'; $ua->credentials("$host", '', "$uname", "$psswd"); my $request = GET $url; print "--Performing request now...-----------\n"; my $response = $ua->request($request); print "--Done with request-------------------\n"; if ($response->is_success) {print "It worked!->" . $response->code . " +\n";} else {print "It didn't work!->" . $response->code . "\n"}