From 7545b5b3db77d3696fb725b1655b82c164647289 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 27 Nov 2010 12:21:59 +0100 Subject: s4:dsdb/tests/python/sam.py - we don't need the domain SID --- source4/dsdb/tests/python/sam.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source4/dsdb/tests') diff --git a/source4/dsdb/tests/python/sam.py b/source4/dsdb/tests/python/sam.py index 836015b31a..9e50c62a50 100755 --- a/source4/dsdb/tests/python/sam.py +++ b/source4/dsdb/tests/python/sam.py @@ -66,15 +66,10 @@ creds = credopts.get_credentials(lp) class SamTests(unittest.TestCase): - def find_domain_sid(self): - res = self.ldb.search(base=self.base_dn, expression="(objectClass=*)", scope=SCOPE_BASE) - return ndr_unpack( security.dom_sid,res[0]["objectSid"][0]) - def setUp(self): super(SamTests, self).setUp() self.ldb = ldb self.base_dn = ldb.domain_dn() - self.domain_sid = self.find_domain_sid() print "baseDN: %s\n" % self.base_dn -- cgit