s3-libads: Improve service principle guessing.
authorAndreas Schneider <asn@samba.org>
Tue, 23 Sep 2014 12:09:41 +0000 (14:09 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 26 Sep 2014 03:55:34 +0000 (05:55 +0200)
commit83c62bd3f5945bbe295cbfbd153736d4c709b3a6
tree68f59fdd7d364d6156aafd24df0544db425ea991
parent69a7e3cfdc8dbba9c8dcfdfae82d2894c7247e15
s3-libads: Improve service principle guessing.

If the name passed to the net command with the -S options is the long
hostname of the domaincontroller and not the 15 char NetBIOS name we
should construct a FQDN with the realm to get a Kerberos ticket.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/libads/sasl.c