mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s4:provision Fix samdb test with new provision code
This commit is contained in:
@ -47,8 +47,6 @@ class SamDBTestCase(TestCaseInTempDir):
|
|||||||
schemadn = "CN=Schema," + configdn
|
schemadn = "CN=Schema," + configdn
|
||||||
domainguid = str(uuid.uuid4())
|
domainguid = str(uuid.uuid4())
|
||||||
policyguid = str(uuid.uuid4())
|
policyguid = str(uuid.uuid4())
|
||||||
creds = Credentials()
|
|
||||||
creds.set_anonymous()
|
|
||||||
domainsid = security.random_sid()
|
domainsid = security.random_sid()
|
||||||
hostguid = str(uuid.uuid4())
|
hostguid = str(uuid.uuid4())
|
||||||
path = os.path.join(self.tempdir, "samdb.ldb")
|
path = os.path.join(self.tempdir, "samdb.ldb")
|
||||||
@ -71,7 +69,18 @@ class SamDBTestCase(TestCaseInTempDir):
|
|||||||
serverrole=serverrole,
|
serverrole=serverrole,
|
||||||
domaindn=self.domaindn, configdn=configdn,
|
domaindn=self.domaindn, configdn=configdn,
|
||||||
schemadn=schemadn)
|
schemadn=schemadn)
|
||||||
self.samdb = setup_samdb(path, self.setup_path, session_info, creds,
|
|
||||||
|
paths = provision_paths_from_lp(self.lp, names.dnsdomain)
|
||||||
|
|
||||||
|
provision_backend = ProvisionBackend("ldb", backend_type,
|
||||||
|
paths=paths, setup_path=self.setup_path,
|
||||||
|
lp=self.lp, credentials=None,
|
||||||
|
names=names,
|
||||||
|
message=message, hostname=hostname,
|
||||||
|
root=root, schema=schema,
|
||||||
|
domainsid=domainsid)
|
||||||
|
|
||||||
|
self.samdb = setup_samdb(path, self.setup_path, session_info, provision_backend,
|
||||||
self.lp, names,
|
self.lp, names,
|
||||||
lambda x: None, domainsid,
|
lambda x: None, domainsid,
|
||||||
domainguid,
|
domainguid,
|
||||||
|
Reference in New Issue
Block a user