libnet_join: build dnsHostName from netbios name and lp_dnsdomain()
authorIsaac Boukris <iboukris@gmail.com>
Thu, 29 Aug 2019 21:22:15 +0000 (00:22 +0300)
committerRalph Boehme <slow@samba.org>
Fri, 25 Oct 2019 09:21:44 +0000 (09:21 +0000)
commit05f7e9a72a1769af9d41b1ca40fe6a14b3f069d1
treecb353f0d00fd7ac438a0363c62665428ea28e768
parentd0f566c4ad32d69a1cf896e2dde56fc2489bb7fc
libnet_join: build dnsHostName from netbios name and lp_dnsdomain()

This make the join process much more reliable, and avoids "Constraint
violation" error when the fqdn returned from getaddrinfo has already
got assigned an SPN.

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

Signed-off-by: Isaac Boukris <iboukris@redhat.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/libnet/libnet_join.c
testprogs/blackbox/test_net_ads.sh