summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-09-18 18:23:40 +0200
committerGünther Deschner <gd@samba.org>2013-09-19 11:09:32 +0200
commit090671aca5234f47f390054de771198e3c177060 (patch)
tree601f09c715f699666584ad3f66ac1a90eb6c5f0c /source3/auth
parent7b570b4128f9af212048ce56abd841a1f6fdc259 (diff)
downloadsamba-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>
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_generic.c5
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