From 04959f21602feb1e53db016d26aa1a22c5a13946 Mon Sep 17 00:00:00 2001 From: jlaine Date: Mon, 11 Apr 2011 14:04:26 +0000 Subject: [PATCH] improve ldap search_s wrapper git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@1041 e071eeec-0327-468d-9b6a-08194a12b294 --- ldapdb/backends/ldap/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldapdb/backends/ldap/base.py b/ldapdb/backends/ldap/base.py index 79d937f..a779221 100644 --- a/ldapdb/backends/ldap/base.py +++ b/ldapdb/backends/ldap/base.py @@ -108,7 +108,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 = [] -- 2.30.2