summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-09-18 17:27:28 +0200
committerGünther Deschner <gd@samba.org>2013-09-19 11:09:11 +0200
commit8fce75aa58ec70547ad218bde154e141f2d17303 (patch)
tree4e81e0fdd83b05097c48c83c8887fd2f605c6618 /source3/libsmb
parent4f979525e4137c536118a9c2b2b4ef798c270e27 (diff)
downloadsamba-8fce75aa58ec70547ad218bde154e141f2d17303.tar.gz
samba-8fce75aa58ec70547ad218bde154e141f2d17303.tar.bz2
samba-8fce75aa58ec70547ad218bde154e141f2d17303.zip
s3-auth: also load schannel module from auth_generic_client_prepare().
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/libsmb')
-rw-r--r--source3/libsmb/auth_generic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/auth_generic.c b/source3/libsmb/auth_generic.c
index e30c1b7e0f..3130decb0e 100644
--- a/source3/libsmb/auth_generic.c
+++ b/source3/libsmb/auth_generic.c
@@ -78,7 +78,7 @@ NTSTATUS auth_generic_client_prepare(TALLOC_CTX *mem_ctx, struct auth_generic_st
}
backends = talloc_zero_array(gensec_settings,
- const struct gensec_security_ops *, 4);
+ const struct gensec_security_ops *, 5);
if (backends == NULL) {
TALLOC_FREE(ans);
return NT_STATUS_NO_MEMORY;
@@ -95,6 +95,7 @@ NTSTATUS auth_generic_client_prepare(TALLOC_CTX *mem_ctx, struct auth_generic_st
backends[idx++] = &gensec_ntlmssp3_client_ops;
backends[idx++] = gensec_security_by_oid(NULL, GENSEC_OID_SPNEGO);
+ backends[idx++] = gensec_security_by_auth_type(NULL, DCERPC_AUTH_TYPE_SCHANNEL);
nt_status = gensec_client_start(ans, &ans->gensec_security, gensec_settings);