On 9/11/12 2:49 PM, Ivan Pavlović wrote:
Thank you Mike for your answer. I started this topic, because i have an assignment at my Faculty, which requires connection between Django and an LDAP (assistant insisted on 389ds). I installed Django, enabled admin, logged in through Firefox. I can't make up my mind, do i need to connect Django and LDAP like so that all users from LDAP can login through e.g. localhost:8000/admin, or do i need to make a register/login page, where users from LDAP server can login and onlu admin can login from admin page? The second is mpre logical to me, but i don't know, because i am new to Django and Python.
I believe that you will write a (small) middleware function which will be added to the tuple PASSWORD_HASHERS in your settings.py. The middleware will take the username and password already provided by the user from an existing login page and then access your LDAP server for the authentication.

You can probably find example code for that middleware function in Django; I needed to use existing Drupal (ugh) passwords for a content conversion to Mezzanine and found an example, probably on django-snippets.

hth

- Tom

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to