Re: Apache/mod_python with python-ldap implementation question
Graham Dumpleton <[email protected]> Thu, 2 Jul 2009 09:27:02 +1000
| Newsgroups | gmane.comp.python.mod_python |
|---|---|
| Message-ID | <[email protected]> |
2009/7/2 wayne collier <[email protected]>: > 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