Fix bug #7079 - cliconnect gets realm wrong with trusted domains.
authorJeremy Allison <jra@samba.org>
Sun, 31 Jan 2010 03:24:28 +0000 (19:24 -0800)
committerJeremy Allison <jra@samba.org>
Sun, 31 Jan 2010 03:24:28 +0000 (19:24 -0800)
commit687e4eba3cced6015fdcaac2c6ba675cdebc1273
tree9e184ef885def723674ea725e9f064c04e18729b
parentf42971c520360e69c4cdd64bebb02a5f5ba49b94
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