samba-tool trust: support discovery via netr_GetDcName
authorAlexander Bokovoy <ab@samba.org>
Sat, 24 Feb 2018 12:34:44 +0000 (14:34 +0200)
committerAlexander Bokovoy <ab@samba.org>
Tue, 24 Jul 2018 07:55:23 +0000 (09:55 +0200)
commitc390728819e73cefbf02e0d52d22805930f4c45b
tree96c949c390d2f2b2c4da75276cac260bbe981d0f
parent6800077c5c57c257326573537d1f2bb7a8066149
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
python/samba/netcmd/domain.py