Legrandin / PyAuthenNTLM2

PyAuthenNTLM2 is an authentication module for Apache. It validates a user by means of the NTLM protocol and a separate Domain Controller (or Active Directory server).
Other
57 stars 42 forks source link

Added Basic Authentication #3

Closed gmazzo closed 12 years ago

gmazzo commented 12 years ago

Hi' I've modified a little your code to allow Basic authentication as well. I needed that for Tortoise SVN

Great work by the way!

Legrandin commented 12 years ago

Thanks a lot!

It is a good idea. At first I was under the impression the same could have been done with mod-auth-ldap, but actually with that you'd also need to hardcode a valid username/password in the apache configuration file, which is something far far from ideal.

Still, I have modified the code a bit so that LDAP is not used at all. :-)

I had code for an NTLM client lying around and I thought it was nice to keep the module as self-contained as possible, so as not to require any other external library (other than PyCrypto).

The Basic authentication request is therefore converted into an NTLM request.

gmazzo commented 12 years ago

I'm glad it was helpful. I'll try your new version tomorrow at work. Grettings

...keep running be a tiger...

Date: Mon, 13 Feb 2012 12:00:40 -0800 From: reply@reply.github.com To: gmazzo_65@hotmail.com Subject: Re: [PyAuthenNTLM2] Added Basic Authentication (#3)

Thanks a lot!

It is a good idea. At first I was under the impression the same could have been done with mod-auth-ldap, but actually with that you'd also need to hardcode a valid username/password in the apache configuration file, which is something far far from ideal.

Still, I have modified the code a bit so that LDAP is not used at all. :-)

I had code for an NTLM client lying around and I thought it was nice to keep the module as self-contained as possible, so as not to require any other external library (other than PyCrypto).

The Basic authentication request is therefore converted into an NTLM request.


Reply to this email directly or view it on GitHub: https://github.com/Legrandin/PyAuthenNTLM2/pull/3#issuecomment-3948003

gmazzo commented 12 years ago

Hey, you forgot to include 'ntlm_client' on setup.py.