Add NTLM proxy authentication to urllib2
John J. Lee
jjl at pobox.com
Thu Sep 7 18:46:12 EDT 2006
Jarek Zgoda <jzgoda at o2.usun.pl> writes:
> looping napisaĆ(a):
>
> > I have to make internet connections through an ISA proxy server that
> > use NTLM or Kerberos authorization method.
> > I've found a program in python called ntlmaps that act like a proxy and
> > could make the NTLM authentication, but you have to run it and make all
> > your connection through it, not an optimal solution.
> > So what I really need is an enhanced urllib2 that support NTLM or
> > Kerberos.
> > I've found that pywin32 could manage NTLM encryption with the sspi
> > module but I've no idea how to implement it in urllib2, NTLM
> > authentication use a 'Token dance' between client and server.
> >
> > Anyone has an experience, a demo or an idea to share ?
>
> Look at NTLM APS (http://ntlmaps.sourceforge.net/), Dimitry did this
> already (although not in urllib).
I *think* I remember somebody did implement NTLM for urllib2. Keep
googling^W employing popular internet free-text search facilities.
But probably a proxy server like the one Jarek mentions is a much more
practical way to go.
John
More information about the Python-list
mailing list