s3-libads: Improve service principle guessing.
commit29f42cbe6f2975bf2ba568e38a18b2256c59e218
authorAndreas Schneider <asn@samba.org>
Tue, 23 Sep 2014 12:09:41 +0000 (23 14:09 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 30 Sep 2014 20:44:58 +0000 (30 22:44 +0200)
tree184ce04039552e66298fd3afa742dc4ce91e4410
parentcdc4cc329af427f0e921a826c9a3b8162d13550d
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>
(cherry picked from commit 83c62bd3f5945bbe295cbfbd153736d4c709b3a6)

Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Tue Sep 30 22:44:58 CEST 2014 on sn-devel-104
source3/libads/sasl.c