Changes between Version 15 and Version 16 of MultipleAuthBackends


Ignore:
Timestamp:
May 16, 2006, 2:36:13 PM (18 years ago)
Author:
jkocherhans
Comment:

clarifications/comments on example LDAP stuff

Legend:

Unmodified
Added
Removed
Modified
  • MultipleAuthBackends

    v15 v16  
    3030I made a copy of contrib.auth.backends so the svn can update it without overwriting my LDAPBackend class.  Don't know if that is the best way to do it or not, but it works.
    3131
     32''I recommend you put it someplace like {{{myapp.auth.LDAPBackend}}}. Maintianing patches to Django is going to be a PITA. --Joseph Kocherhans''
     33
    3234I also hacked the contrib.auth.models file to change the check_password function to check against our LDAP server, and added a few small functions to check the type of user account.  I know this will break next time I update the source, but I have a copy of that as well.  There is surely a better way, but I'm still learning.
     35
     36''You shouldn't have to hack the {{{check_password}}} function at all. It isn't called directly by Django's views anymore... only indirectly via {{{django.contrib.auth.backends.ModelBacked}}}, which you aren't using. -Joseph Kocherhans''
    3337
    3438End of newbie addition
Back to Top