krb5_wrap: Try to guess the correct realm from the service hostname
authorAndreas Schneider <asn@samba.org>
Wed, 8 Mar 2017 09:48:52 +0000 (10:48 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 10 Mar 2017 10:37:21 +0000 (11:37 +0100)
commit65228925ab3c4da4ae299f77cae219fc7d37cc68
tree4e0d3cb3bd2c1b858a42cff63ad54c490b52e655
parent946f9dd1170be63b91e31ce825ea123f3c07329b
krb5_wrap: Try to guess the correct realm from the service hostname

If we do not get a realm mapping from the krb5.conf or from the Kerberos
library try to guess it from the service hostname. The guessing of the
realm from the service hostname is already implemented in Heimdal. This
makes the behavior of smb_krb5_get_realm_from_hostname() consistent
with both MIT and Heimdal.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12554

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/krb5_wrap/krb5_samba.c