summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-07-14 13:35:14 +1000
committerAndrew Tridgell <tridge@samba.org>2011-07-21 11:44:36 +1000
commita656b189b8e9b7d111fd8c4760107ea3ca4488f5 (patch)
tree9a88057d79838c89a9f4f9fbac816c4c62dc754d /source4
parenta2c425858b6bbc9756adba46d90fdfa6004c2ac2 (diff)
downloadsamba-a656b189b8e9b7d111fd8c4760107ea3ca4488f5.tar.gz
samba-a656b189b8e9b7d111fd8c4760107ea3ca4488f5.tar.bz2
samba-a656b189b8e9b7d111fd8c4760107ea3ca4488f5.zip
s4-provision: run dbcheck on a minimal set of objects in provision
this speeds up the dbcheck in provision to fix only the objects that we know will need fixing Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/provision/__init__.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py
index 4fa2823214..5b8dc70329 100644
--- a/source4/scripting/python/samba/provision/__init__.py
+++ b/source4/scripting/python/samba/provision/__init__.py
@@ -1845,10 +1845,14 @@ def provision(logger, session_info, credentials, smbconf=None,
logger.info("Fixing provision GUIDs")
chk = dbcheck(samdb, samdb_schema=samdb, verbose=False, fix=True, yes=True, quiet=True)
samdb.transaction_start()
- chk.check_database(DN=None, controls=["search_options:1:2", "show_deleted:1"],
- attrs=['defaultObjectCategory',
- 'objectCategory',
- 'ipsecOwnersReference',
+ # a small number of GUIDs are missing because of ordering issues in the
+ # provision code
+ for schema_obj in ['CN=Domain', 'CN=Organizational-Person', 'CN=Contact', 'CN=inetOrgPerson']:
+ chk.check_database(DN="%s,%s" % (schema_obj, names.schemadn),
+ scope=ldb.SCOPE_BASE, attrs=['defaultObjectCategory'])
+ chk.check_database(DN="CN=IP Security,CN=System,%s" % names.domaindn,
+ scope=ldb.SCOPE_ONELEVEL,
+ attrs=['ipsecOwnersReference',
'ipsecFilterReference',
'ipsecISAKMPReference',
'ipsecNegotiationPolicyReference',