From 090671aca5234f47f390054de771198e3c177060 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 18 Sep 2013 18:23:40 +0200 Subject: s3-auth: register schannel gensec module in auth_generic_prepare() as well. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Pair-Programmed-With: Andreas Schneider Reviewed-by: Stefan Metzmacher --- source3/auth/auth_generic.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/auth') diff --git a/source3/auth/auth_generic.c b/source3/auth/auth_generic.c index e15c87edfc..e07d3b7a9e 100644 --- a/source3/auth/auth_generic.c +++ b/source3/auth/auth_generic.c @@ -32,6 +32,7 @@ #include "librpc/crypto/gse.h" #include "auth/credentials/credentials.h" #include "lib/param/loadparm.h" +#include "librpc/gen_ndr/dcerpc.h" static NTSTATUS auth3_generate_session_info_pac(struct auth4_context *auth_ctx, TALLOC_CTX *mem_ctx, @@ -261,7 +262,7 @@ NTSTATUS auth_generic_prepare(TALLOC_CTX *mem_ctx, } backends = talloc_zero_array(gensec_settings, - const struct gensec_security_ops *, 4); + const struct gensec_security_ops *, 5); if (backends == NULL) { TALLOC_FREE(tmp_ctx); return NT_STATUS_NO_MEMORY; @@ -279,6 +280,8 @@ NTSTATUS auth_generic_prepare(TALLOC_CTX *mem_ctx, backends[idx++] = gensec_security_by_oid(NULL, GENSEC_OID_SPNEGO); + backends[idx++] = gensec_security_by_auth_type(NULL, DCERPC_AUTH_TYPE_SCHANNEL); + /* * This is anonymous for now, because we just use it * to set the kerberos state at the moment -- cgit