s4-tests: Modified acl tests to use pyldb api to retrieve configuration dn.
[kai/samba.git] / source4 / dsdb / tests / python / acl.py
index 2f9cf6416e4ff2b220627c0bfa8b0297701920d5..14800053c98e51b1da91e499d708246387d49e10 100755 (executable)
@@ -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):