diff options
author | Günther Deschner <gd@samba.org> | 2013-09-18 18:23:40 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2013-09-19 11:09:32 +0200 |
commit | 090671aca5234f47f390054de771198e3c177060 (patch) | |
tree | 601f09c715f699666584ad3f66ac1a90eb6c5f0c | |
parent | 7b570b4128f9af212048ce56abd841a1f6fdc259 (diff) | |
download | samba-090671aca5234f47f390054de771198e3c177060.tar.gz samba-090671aca5234f47f390054de771198e3c177060.tar.bz2 samba-090671aca5234f47f390054de771198e3c177060.zip |
s3-auth: register schannel gensec module in auth_generic_prepare() as well.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source3/auth/auth_generic.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 |