samba-tool trust: support discovery via netr_GetDcName
authorAlexander Bokovoy <ab@samba.org>
Sat, 24 Feb 2018 12:34:44 +0000 (14:34 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Aug 2018 10:56:35 +0000 (12:56 +0200)
commit04a8995fd0b8fe4f9ab59e91b51b0d9bdf1a04c4
tree9248ded4c1ad1d98f84ac55843b90dd976cdd488
parent4b3ac377a6e8aed03a8e8c478768a32bf6b78fba
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