1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

make sure to always use string version of uuid rather than object.

(This used to be commit bcd5fc7dc9)
This commit is contained in:
Jelmer Vernooij
2008-05-11 04:36:37 +02:00
parent 8c926a34c8
commit 251f6bd991
2 changed files with 7 additions and 6 deletions

View File

@ -29,18 +29,18 @@ import uuid
class SamDBTestCase(TestCaseInTempDir):
def setUp(self):
super(SamDBTestCase, self).setUp()
invocationid = uuid.uuid4()
invocationid = str(uuid.uuid4())
domaindn = "DC=COM,DC=EXAMPLE"
self.domaindn = domaindn
configdn = "CN=Configuration," + domaindn
schemadn = "CN=Schema," + configdn
domainguid = uuid.uuid4()
policyguid = uuid.uuid4()
domainguid = str(uuid.uuid4())
policyguid = str(uuid.uuid4())
setup_path = lambda x: os.path.join("setup", x)
creds = Credentials()
creds.set_anonymous()
domainsid = security.random_sid()
hostguid = uuid.uuid4()
hostguid = str(uuid.uuid4())
path = os.path.join(self.tempdir, "samdb.ldb")
self.samdb = setup_samdb(path, setup_path, system_session(), creds,
cmdline_loadparm, schemadn, configdn,