mirror of
https://github.com/samba-team/samba.git
synced 2025-07-18 00:59:12 +03:00
python: Fix representation of UUIDs as strings in zone files rather than binary blobs, fix escaping of LDAP URL's in PHP LDAP admin configuration.
Pair-programmed with Andrew, but git doesn't appear to support multiple --author arguments. :-(
(This used to be commit dff54ff043
)
This commit is contained in:
@ -33,7 +33,7 @@ class ProvisionTestCase(samba.tests.TestCaseInTempDir):
|
||||
ldb = setup_secretsdb(path, setup_path, None, None, None)
|
||||
try:
|
||||
self.assertEquals("LSA Secrets",
|
||||
ldb.searchone(Dn(ldb, "CN=LSA Secrets"), "CN"))
|
||||
ldb.searchone(basedn="CN=LSA Secrets", attribute="CN"))
|
||||
finally:
|
||||
del ldb
|
||||
os.unlink(path)
|
||||
@ -50,6 +50,14 @@ class ProvisionTestCase(samba.tests.TestCaseInTempDir):
|
||||
machinepass="machinepass", dnsdomain="example.com")
|
||||
self.assertEquals(1,
|
||||
len(secrets_ldb.search("samAccountName=krbtgt,flatname=EXAMPLE,CN=Principals")))
|
||||
self.assertEquals("keytab.path",
|
||||
secrets_ldb.searchone(basedn="flatname=EXAMPLE,CN=primary domains",
|
||||
expression="(privateKeytab=*)",
|
||||
attribute="privateKeytab"))
|
||||
self.assertEquals("S-5-22",
|
||||
secrets_ldb.searchone(basedn="flatname=EXAMPLE,CN=primary domains",
|
||||
expression="objectSid=*", attribute="objectSid"))
|
||||
|
||||
finally:
|
||||
del secrets_ldb
|
||||
os.unlink(path)
|
||||
|
Reference in New Issue
Block a user