Fix bug #7079 - cliconnect gets realm wrong with trusted domains.
commit29d077a066e34d0432dbe6e2d5f0eb6e90ddbaaa
authorJeremy Allison <jra@samba.org>
Sun, 31 Jan 2010 03:24:28 +0000 (30 19:24 -0800)
committerFernando J V da Silva <fernandojvsilva@yahoo.com.br>
Thu, 4 Feb 2010 19:09:52 +0000 (4 17:09 -0200)
treee3f1b117767daf3e7f4e8cf501a2274a89b64242
parentb686b9152865e6ae864d417931fc4bde4184e5b4
Fix bug #7079 - cliconnect gets realm wrong with trusted domains.

Passing NULL as dest_realm for cli_session_setup_spnego() was
always using our own realm (as for a NetBIOS name). Change this
to look for the mapped realm using krb5_get_host_realm() if
the destination machine name is a DNS name (contains a '.').
Could get fancier with DNS name detection (length, etc.) but
this will do for now.

Jeremy.
source3/configure.in
source3/include/proto.h
source3/libads/kerberos.c
source3/libsmb/cliconnect.c