[mod_python] Apache/mod_python with python-ldap implementation question

Graham Dumpleton graham.dumpleton at gmail.com
Wed Jul 1 19:27:02 EDT 2009


2009/7/2 wayne collier <Wayne.Collier at noaa.gov>:
> Hello all. I would like to authenticate and authorize users on a website
> using Apache and mod_python. I need help clarifying my conceptual
> understanding.   If I want authenticate  ldap members/users  who give me
> their username and password via my login template, do I have to have a
> specific modification for it in httpd.conf  file? To clarify more, can i
> simply evoke the commands of the python-ldap module within my source code
> once I receive the request object.  Is this sound reasoning? Thanks.

Since you are using a web based form type mechanism for supplying
credentials, then it is totally within the context of your application
and no special httpd.conf configuration should be needed.

Suggest you search the net for examples of session based login using
cookies and then simply replace the authentication bit to use LDAP
instead using python-ldap instead.

Graham



More information about the Mod_python mailing list