From b397a139203781d7df9992a821b1c6c6849c42cf Mon Sep 17 00:00:00 2001 From: Nadezhda Ivanova Date: Thu, 18 Nov 2010 20:43:16 +0200 Subject: s4-tests: Modified acl tests to use pyldb api to retrieve configuration dn. --- source4/dsdb/tests/python/acl.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source4/dsdb/tests/python') diff --git a/source4/dsdb/tests/python/acl.py b/source4/dsdb/tests/python/acl.py index 2f9cf6416e..14800053c9 100755 --- a/source4/dsdb/tests/python/acl.py +++ b/source4/dsdb/tests/python/acl.py @@ -74,9 +74,7 @@ class AclTests(samba.tests.TestCase): self.base_dn = ldb.domain_dn() self.domain_sid = self.find_domain_sid(self.ldb_admin) self.user_pass = "samba123@" - res = self.ldb_admin.search(base="", expression="", scope=SCOPE_BASE, - attrs=["configurationNamingContext"]) - self.configuration_dn = res[0]["configurationNamingContext"][0] + self.configuration_dn = self.ldb_admin.get_config_basedn().get_linearized() print "baseDN: %s" % self.base_dn def get_user_dn(self, name): -- cgit