X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ldapdb%2Fbackends%2Fldap%2Fbase.py;h=201f287a4c5dff82bc0ef83ce7a8bed1815dd4ca;hb=b1bbd52d06dd8c9160ae925b5c407f642f2698c1;hp=79d937fe0d23114f6ea7abf6977bbc942451d8c1;hpb=bc299bd4085d3c5878ebd2151dcb85f0fa17014c;p=matthijs%2Fupstream%2Fdjango-ldapdb.git diff --git a/ldapdb/backends/ldap/base.py b/ldapdb/backends/ldap/base.py index 79d937f..201f287 100644 --- a/ldapdb/backends/ldap/base.py +++ b/ldapdb/backends/ldap/base.py @@ -74,6 +74,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): self.creation = DatabaseCreation(self) self.features = DatabaseFeatures(self) self.ops = DatabaseOperations() + self.settings_dict['SUPPORTS_TRANSACTIONS'] = False def close(self): pass @@ -108,7 +109,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): cursor = self._cursor() return cursor.connection.rename_s(dn.encode(self.charset), newrdn.encode(self.charset)) - def search_s(self, base, scope, filterstr, attrlist): + def search_s(self, base, scope, filterstr='(objectClass=*)',attrlist=None): cursor = self._cursor() results = cursor.connection.search_s(base, scope, filterstr.encode(self.charset), attrlist) output = []