Restore 3.0 behaviour with empty /etc/hosts
authorVolker Lendecke <vl@samba.org>
Fri, 29 Feb 2008 21:38:10 +0000 (22:38 +0100)
committerKarolin Seeger <ks@sernet.de>
Mon, 3 Mar 2008 10:40:12 +0000 (11:40 +0100)
commitf247b78eb9db8f85f31d8fd07f2cfbd03c819d14
treecc06d1e28f752fdb8b7ef5797c9d2bb4d8a65cf9
parent2e7eb4d023f8b284121ae380091363ba25d0a3e4
Restore 3.0 behaviour with empty /etc/hosts

Jeremy, in 3.0 we allowed get_mydnsdomname and get_mydnsfullname to fail
without filling in anything useful. Worked fine. Without this patch and a empty
/etc/hosts and no DNS configured, session setup would return
NT_STATUS_BAD_NETWORK_NAME. This is confusing at best, BAD_NETWORK_NAME afaik
is only ever returned from tcon normally.

This restores the 3.0 behaviour.

Comments?

Volker
(This used to be commit 4170259e5f83c281966a80916e4ece6937e08988)
source3/libsmb/ntlmssp.c