samba-tool trust: support discovery via netr_GetDcName
commit7658ffc73ca6bc5f001baed1ca8ec09307b55d3d
authorAlexander Bokovoy <ab@samba.org>
Sat, 24 Feb 2018 12:34:44 +0000 (24 14:34 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sat, 28 Jul 2018 04:16:15 +0000 (28 06:16 +0200)
treef1124fc9b868ef0695ea3a58de97f8a172c3028b
parenta500e042a827f385ed51e3d72b87c65b49ac7796
samba-tool trust: support discovery via netr_GetDcName

In case a remote DC does not support netr_DsRGetDCNameEx2(),
use netr_GetDcName() instead.

This should help with FreeIPA where embedded smbd runs as a domain
controller but does not implement full Active Directory compatibility.

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

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Tue Jul 24 09:55:23 CEST 2018 on sn-devel-144

(cherry picked from commit c390728819e73cefbf02e0d52d22805930f4c45b)
python/samba/netcmd/domain.py