Fix Windows 2008 (Longhorn) join.
commitcfe7b54e96d39d19ad6b28c0d7db380907171e21
authorAndreas Schneider <anschneider@suse.de>
Thu, 17 Jan 2008 10:35:40 +0000 (17 11:35 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 23 Jan 2008 22:57:45 +0000 (23 14:57 -0800)
treea2bdc8d076e7b9b770a394b215441a3b1ab94e26
parent691c4b1a4175e3d4a073c396a2a7d8d315cd42bd
Fix Windows 2008 (Longhorn) join.

During 'net ads join' the cli->desthost is a hostname (e.g.
rupert.galaxy.site). Check if we have a hostname and use only the
first part, the machine name, of the string.
(This used to be commit 5f60ed4af680ba2811db8d9f8267348ce05f26d2)
source3/libsmb/cliconnect.c