diff options
Diffstat (limited to 'source4/dsdb/tests/python/passwords.py')
-rwxr-xr-x | source4/dsdb/tests/python/passwords.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source4/dsdb/tests/python/passwords.py b/source4/dsdb/tests/python/passwords.py index 8cb7136ebb..f238c1adc4 100755 --- a/source4/dsdb/tests/python/passwords.py +++ b/source4/dsdb/tests/python/passwords.py @@ -69,16 +69,10 @@ class PasswordTests(samba.tests.TestCase): except LdbError, (num, _): self.assertEquals(num, ERR_NO_SUCH_OBJECT) - def find_basedn(self, ldb): - res = ldb.search(base="", expression="", scope=SCOPE_BASE, - attrs=["defaultNamingContext"]) - self.assertEquals(len(res), 1) - return res[0]["defaultNamingContext"][0] - def setUp(self): super(PasswordTests, self).setUp() self.ldb = ldb - self.base_dn = self.find_basedn(ldb) + self.base_dn = ldb.domain_dn() # (Re)adds the test user "testuser" with no password atm self.delete_force(self.ldb, "cn=testuser,cn=users," + self.base_dn) |