Patch for bug #8156 - net ads join fails to use the user's kerberos ticket.
authorJeremy Allison <jra@samba.org>
Fri, 20 May 2011 21:43:50 +0000 (14:43 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 30 Sep 2011 19:07:45 +0000 (21:07 +0200)
commitf16e4cc11fd4f195da7c4f0de13d0bb23e5b79d1
treefcad05943f476144542fba53347b840364a25def
parentb6f691ede0a80aaf7226b6862120b5052e63668d
Patch for bug #8156 - net ads join fails to use the user's kerberos ticket.

If kerberos_get_realm_from_hostname() or kerberos_get_default_realm_from_ccache() fails due to
 a misconfigured krb5.conf, try the "realm =" from smb.conf as a fallcback before going back to
 NTLMSSP (which we'll do anyway).
(cherry picked from commit ccab9efb653cfacdd357986f7a8a85c17df7abbb)
source3/libsmb/cliconnect.c