diff options
author | Nadezhda Ivanova <nivanova@samba.org> | 2010-11-18 20:43:16 +0200 |
---|---|---|
committer | Nadezhda Ivanova <nivanova@samba.org> | 2010-11-18 21:41:27 +0100 |
commit | b397a139203781d7df9992a821b1c6c6849c42cf (patch) | |
tree | cd8257f3fd09de4e54ab815e13cb6c68d4b31026 | |
parent | 0f6a4a2f72b30f8a6b7ab03b5fae33ccae6cfea6 (diff) | |
download | samba-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-x | source4/dsdb/tests/python/acl.py | 4 |
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): |