summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadezhda Ivanova <nivanova@samba.org>2010-11-18 20:43:16 +0200
committerNadezhda Ivanova <nivanova@samba.org>2010-11-18 21:41:27 +0100
commitb397a139203781d7df9992a821b1c6c6849c42cf (patch)
treecd8257f3fd09de4e54ab815e13cb6c68d4b31026
parent0f6a4a2f72b30f8a6b7ab03b5fae33ccae6cfea6 (diff)
downloadsamba-b397a139203781d7df9992a821b1c6c6849c42cf.tar.gz
samba-b397a139203781d7df9992a821b1c6c6849c42cf.tar.bz2
samba-b397a139203781d7df9992a821b1c6c6849c42cf.zip
s4-tests: Modified acl tests to use pyldb api to retrieve configuration dn.
-rwxr-xr-xsource4/dsdb/tests/python/acl.py4
1 files changed, 1 insertions, 3 deletions
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):