#11526: LDAP authentication backend ---------------------------------------------+------------------------------ Reporter: psagers | Owner: nobody Status: new | Milestone: Component: Authentication | Version: SVN Resolution: | Keywords: ldap Stage: Design decision needed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 1 | ---------------------------------------------+------------------------------ Changes (by rh0dium):
* needs_better_patch: 0 => 1 * has_patch: 1 => 0 Comment: I have a couple of questions. Here is what I did. • Pulled the diff and applied the patch (patch -p0 auth_ldap.diff) to a stock 1.1 django release. It complained about the docs but then I figured out that if I was working off of the trunk it would be there.. • Read the docs. • Now I put this in my global settings.py {{{ AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.contrib.ldap.backend.LDAPBackend', 'django.contrib.auth.backends.ModelBackend', ) AUTH_LDAP_SERVER_URI = "ldap://discovery.smsc.com" AUTH_LDAP_USER_DN_TEMPLATE = "cn=%(user)s,o=SMSC,objectclass=person" }}} Fired up my test server (python2.6 manage.py shell --settings=settings_sklass_dev --pythonpath=/Users/sklass/perforce//dev/tools/django/smscapps/) Now when I login I get an exception: {{{ Error importing authentication backend django.contrib.auth.contrib.ldap.backend: "No module named contrib.ldap.backend" }}} It looks like the patch missed a file?? -- Ticket URL: <http://code.djangoproject.com/ticket/11526#comment:18> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---