sunslinger has asked for the wisdom of the Perl Monks concerning the following question:

Hi fellow monks! I managed to get it to work!! For everyone else who might be interested in doing something similar, you can check out the WIN32-IEAutomation-0.5. It allows you to call on Windows IE directly and work with the text boxes and buttons directly, hence, bypassing the proxies or authentications (assuming you're already logged onto the NT domain from the beginning). Hope this may benefit someone else. - sunslinger
  • Comment on sunslinger : Need help with LWP::UserAgent and NTLM

Replies are listed 'Best First'.
Re: sunslinger : Need help with LWP::UserAgent and NTLM
by aufflick (Deacon) on Jul 18, 2006 at 06:56 UTC
    I've noticed a similar loop with my NTLM attempts. All my recent attempts have failed which might be because of newer IIS/NTLM versions.

    FWIW you might want to look at the responses and linked comments in the thread NTLM - Not Telling Linux Much

      Hi aufflick, Thanks for looking into post. Yah, I've already seen the link that you posted, but it doesn't seem to tell me much. FYI, most of my code is based on that thread but I still cannot get it to work... *sigh.
Re: sunslinger : Need help with LWP::UserAgent and NTLM
by shmem (Chancellor) on Jul 18, 2006 at 07:08 UTC
    I would do the same with an IE, trace the conversations on the network level with e.g. ethereal and compare them, looking specially into the NTLM credentials.

    Something's different, and you'll find out :-)

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
Re: sunslinger : Need help with LWP::UserAgent and NTLM
by aufflick (Deacon) on Jul 18, 2006 at 07:14 UTC
    Not quite what you're asking, but it might be worth talking to your proxy administrator and see if they are willing to make an exception to authentication from a fixed IP address (if you're writing server code).

    I have also had success using wget (works under cygwin for windows users, also seems to be available as a native windows binaries) when talking to troublesome proxies. Not as nice as doing it inside Perl, but sometimes you have to go with what works (if you don't have the time to go poking inside TCP packets, as fun as that can be ;)