dbcheck: fixed ldap check with no database specified
authorAndrew Tridgell <tridge@samba.org>
Tue, 12 Jul 2011 01:12:21 +0000 (11:12 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 13 Jul 2011 10:51:05 +0000 (12:51 +0200)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

source4/scripting/python/samba/netcmd/dbcheck.py

index 823ec7a101fb248f08074109baf177e2e0c43adf..6c47f853468cc4066abb3025cba409265a8a296b 100644 (file)
@@ -88,7 +88,7 @@ class cmd_dbcheck(Command):
         search_scope = scope_map[scope]
 
         controls = ['show_deleted:1']
-        if H.startswith('ldap'):
+        if over_ldap:
             controls.append('paged_results:1:1000')
         if cross_ncs:
             controls.append("search_options:1:2")