diff options
| author | Andrew Bartlett <abartlet@samba.org> | 2023-05-25 16:57:55 +1200 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2023-05-29 22:32:28 +0000 |
| commit | 920e1a5bae33391615cd8b66f2f34d7837845aa0 (patch) | |
| tree | eef11d2bc706988c9dae7716affd046c1625f2dd /python/samba | |
| parent | 1593c9e6588cd15b88793d43bee17c060718c134 (diff) | |
| download | samba-920e1a5bae33391615cd8b66f2f34d7837845aa0.tar.gz samba-920e1a5bae33391615cd8b66f2f34d7837845aa0.tar.bz2 samba-920e1a5bae33391615cd8b66f2f34d7837845aa0.zip | |
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>
Diffstat (limited to 'python/samba')
| -rw-r--r-- | python/samba/tests/getdcname.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/tests/getdcname.py b/python/samba/tests/getdcname.py index fc6b6d9a6bd..34806f5e662 100644 --- a/python/samba/tests/getdcname.py +++ b/python/samba/tests/getdcname.py @@ -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: |
