1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

s4-python: samba.provision: Require schema to be passed in - code path which handles schema not being specified is broken anyway.

This commit is contained in:
Jelmer Vernooij 2011-11-02 16:23:06 +01:00
parent aa882d3323
commit 3ce126f352

View File

@ -1200,8 +1200,7 @@ def create_default_gpo(sysvolpath, dnsdomain, policyguid, policyguid_dc):
def setup_samdb(path, session_info, provision_backend, lp, names,
logger, fill, serverrole,
am_rodc=False, schema=None):
logger, fill, serverrole, schema, am_rodc=False):
"""Setup a complete SAM Database.
:note: This will wipe the main SAM database file!
@ -1212,9 +1211,6 @@ def setup_samdb(path, session_info, provision_backend, lp, names,
provision_backend=provision_backend, session_info=session_info,
names=names, serverrole=serverrole, schema=schema)
if schema is None:
schema = Schema(domainsid, schemadn=names.schemadn)
# Load the database, but don's load the global schema and don't connect
# quite yet
samdb = SamDB(session_info=session_info, url=None, auto_connect=False,