s3-libads: Improve service principle guessing.
commitbff195a254f16d34cd7bbd56cd225c436aff68c2
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:52:34 +0000 (30 22:52 +0200)
tree32d11ba2057a3e61eb839f7f5200b1c0cbef38a5
parentf93df45f3e9822a6919d5651869fd7ca2d787ac8
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-1-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-1-test): Tue Sep 30 22:52:34 CEST 2014 on sn-devel-104
source3/libads/sasl.c