1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s4-upgradeprovision: try to fix the detection of @provision record

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Aug  1 13:43:50 CEST 2011 on sn-devel-104
This commit is contained in:
Matthieu Patou 2011-07-31 00:46:58 +04:00 committed by Matthieu Patou
parent f72d56de50
commit 2d23dff49b

View File

@ -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: