auth/gensec: make sure we keep a DCERPC_AUTH_TYPE_SCHANNEL backend if required
authorStefan Metzmacher <metze@samba.org>
Wed, 17 Dec 2014 18:42:55 +0000 (18:42 +0000)
committerStefan Metzmacher <metze@samba.org>
Fri, 19 Dec 2014 12:15:13 +0000 (13:15 +0100)
commit6ec32d7e127d48c708a53850ad99079fac0dad8e
tree6cbbe4d81d9a4f7de78361415e35f5a7f7091c2b
parentc257b14b8b2ff8a1ca29f8a429ce6051c309f512
auth/gensec: make sure we keep a DCERPC_AUTH_TYPE_SCHANNEL backend if required

Even with CRED_MUST_USE_KERBEROS we should keep the DCERPC_AUTH_TYPE_SCHANNEL
backend arround, this can only be specified explicitely by the caller
and cli_credentials_get_netlogon_creds() != NULL is the strong indication
that the caller is using DCERPC_AUTH_TYPE_SCHANNEL *now*.

With trusts against AD domain we can reliable use kerberos and netlogon
secure channel for authentication.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/gensec/gensec_start.c