mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
selftest: Rework samba.tests.getdcname not to use ncalrpc
This test is able to operate over the network, which aids testing against a comparative windows DC. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
parent
1593c9e658
commit
920e1a5bae
@ -44,7 +44,7 @@ class GetDCNameEx(samba.tests.TestCase):
|
||||
def _call_get_dc_name(self, domain=None, domain_guid=None,
|
||||
site_name=None, ex2=False, flags=0):
|
||||
if self.netlogon_conn is None:
|
||||
self.netlogon_conn = netlogon.netlogon("ncalrpc:[schannel]",
|
||||
self.netlogon_conn = netlogon.netlogon(f"ncacn_ip_tcp:{self.server}",
|
||||
self.get_loadparm())
|
||||
|
||||
if ex2:
|
||||
|
@ -1323,7 +1323,7 @@ if have_heimdal_support:
|
||||
planoldpythontestsuite("ad_dc", "samba.tests.group_audit",
|
||||
extra_args=['-U"$USERNAME%$PASSWORD"'])
|
||||
|
||||
planoldpythontestsuite("fl2008r2dc:local",
|
||||
planoldpythontestsuite("fl2008r2dc",
|
||||
"samba.tests.getdcname",
|
||||
extra_args=['-U"$USERNAME%$PASSWORD"'])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user