s4-upgradeprovision: try to fix the detection of @provision record
authorMatthieu Patou <mat@matws.net>
Sat, 30 Jul 2011 20:46:58 +0000 (00:46 +0400)
committerMatthieu Patou <mat@samba.org>
Mon, 1 Aug 2011 11:43:50 +0000 (13:43 +0200)
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Aug  1 13:43:50 CEST 2011 on sn-devel-104

source4/scripting/bin/upgradeprovision

index af9796471389693e6b5dc5a97dba95bd2fa33843..0a3df32854968b3d03565f4bb0519de6f62256ce 100755 (executable)
@@ -1348,7 +1348,7 @@ def rebuild_sd(samdb, names):
 
 def hasATProvision(samdb):
         entry = samdb.search(expression="dn=@PROVISION", base = "",
-                                scope=SCOPE_SUBTREE,
+                                scope=SCOPE_BASE,
                                 attrs=["dn"])
 
         if entry != None and len(entry) == 1: