Commits

Steve Meinel  committed 03a355a

BUGFIX: _LDAPUser._get_connection() uses uninitialized ldap object

Fixes #1

It now uses self.backend.ldap instead of ldap, and it appears to work correctly now.

  • Participants
  • Parent commits bcd8693

Comments (0)

Files changed (1)

File django_auth_ldap/backend.py

             if callable(uri):
                 uri = uri()
 
-            self._connection = ldap.initialize(uri)
+            self._connection = self.backend.ldap.initialize(uri)
 
             for opt, value in self.settings.CONNECTION_OPTIONS.iteritems():
                 self._connection.set_option(opt, value)