server/ldaputils.py
changeset 8250 171a9d6bff8f
parent 8244 c7d89541e3c5
child 8329 ac2b17bd7311
--- a/server/ldaputils.py	Mon Feb 20 11:46:28 2012 +0100
+++ b/server/ldaputils.py	Tue Feb 14 11:33:59 2012 +0100
@@ -227,7 +227,7 @@
         if cnx is None:
             return True # ldap unreachable, suppose it exists
         try:
-            cnx.search_s(base, scope, searchstr, attrs)
+            cnx.search_s(dn, self.user_base_scope)
         except ldap.PARTIAL_RESULTS:
             pass
         except ldap.NO_SUCH_OBJECT: