python - Form-based Kerberos authentication in Django -


i have got django application uses remoteuserbackend in combination apache , mod_auth_kerb authenticate against kerberos.

however, has drawbacks:

  1. there no proper logout without closing browser tab. may click "logout" in django application, expect asked credentials when try log in again - latter not case. (side note: quite possible application 2 users want log in 1 after another, increases lack of comfort , may problematic when 1 users performs actions other user's rights.)
  2. the application tailored apache/remoteuser solution, provide no flexibility switch on other authentication methods, e.g. authentication against django database. possibility use alternative authentication methods ease development of application.

that said, use form-based authentication (username/password). move control authentication django, login/logout should work then. also, form used different authentication backends, without need modify gui.

how can done? there solution or project adresses issue? implementations saw like ones in answers here use apache or ldap authentication, not kerberos.

related, unanswered question: django user logout remote authentication

sorry delayed. author of above recommended kerberos + django post (roguelynn.com).

for first issue, take @ kobo: https://fedorahosted.org/kobo/ - uses kerberos + remoteuserbackend + apache django, implements logout mechanism (in kobo/django/xmlrpc/auth.py: https://git.fedorahosted.org/cgit/kobo.git/tree/kobo/django/xmlrpc/auth.py).


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -