Fix Windows 2008 (Longhorn) join.
authorAndreas Schneider <anschneider@suse.de>
Thu, 17 Jan 2008 10:35:40 +0000 (11:35 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 23 Jan 2008 22:57:45 +0000 (14:57 -0800)
commit5f60ed4af680ba2811db8d9f8267348ce05f26d2
tree5d54e3d48ecc84d124ca6378f45df438e396b220
parent5aadfcdaacd6f136eab9e107a88b8544e6d2105f
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.
source/libsmb/cliconnect.c