mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
tests: Remove redundant credentials from auth_log tests
The LDB connection in these tests is to the direct sam.ldb file on disk, so the credentials are not actually needed (and in fact, weren't event initialized correctly). These tests always need to run on the DC itself (i.e. :local testenv) because they use ncalrpc connections. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
4a9f7d2456
commit
3ce28f918c
@@ -47,12 +47,9 @@ class AuthLogTestsNetLogon(samba.tests.auth_log_base.AuthLogTestBase):
|
||||
def setUp(self):
|
||||
super(AuthLogTestsNetLogon, self).setUp()
|
||||
self.lp = samba.tests.env_loadparm()
|
||||
self.creds = Credentials()
|
||||
|
||||
self.session = system_session()
|
||||
self.ldb = SamDB(
|
||||
session_info=self.session,
|
||||
credentials=self.creds,
|
||||
lp=self.lp)
|
||||
|
||||
self.domain = os.environ["DOMAIN"]
|
||||
|
||||
Reference in New Issue
Block a user