netlogon: Forward GetDCNameEx2 to winbind via IRPC
authorGarming Sam <garming@catalyst.net.nz>
Tue, 20 Mar 2018 22:25:19 +0000 (11:25 +1300)
committerGarming Sam <garming@samba.org>
Fri, 4 May 2018 04:12:10 +0000 (06:12 +0200)
commit6d188fe05b7860e3abd7cfcc21ce1390bbfd8a71
tree68c22456a95e4bc8a47f3f4b328d56b2c2b140d4
parent7d23177cea2a919ec37177954448d090e84a13fe
netlogon: Forward GetDCNameEx2 to winbind via IRPC

Here we simply forward everything without alteration (the same struct is
returned). This helps us to fix the case where the DC does not exist in
the target site, furthermore, this is supposed to work for trusted
domains.

In calling out to winbind, we now also notice if you provide a site
which exists in multiple domains and provide the correct domain (instead
of accidentally returning ourselves).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13365

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/flapping.d/getdcname [new file with mode: 0644]
selftest/knownfail.d/getdcname [deleted file]
source4/rpc_server/netlogon/dcerpc_netlogon.c