s3:passdb: use cli_credentials_set_kerberos_state() for trusts in pdb_get_trust_crede...
authorStefan Metzmacher <metze@samba.org>
Wed, 22 Feb 2017 19:07:25 +0000 (20:07 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 24 Feb 2017 17:40:14 +0000 (18:40 +0100)
commitd961ae9d14b46708d2693ca91ace04f9f1a53ca2
tree96590488a81d0b2bddf6bff632cd1b3ead75af45
parentc97a29bdfdc0020ec0113073580da56f2d35edc1
s3:passdb: use cli_credentials_set_kerberos_state() for trusts in pdb_get_trust_credentials()

Trust accounts can only use kerberos when contacting other AD domains,
using NTLMSSP will fail.

At the same time it doesn't make sense to try kerberos for NT4 domains,
still NTLMSSP will fail, but the callers has to deal with that
case and just fallback to an anonymous SMB connection.

In all cases we should be able to use NETLOGON SCHANNEL
over any anonymous smb or tcp transport.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/passdb/passdb.c