s3-auth: register schannel gensec module in auth_generic_prepare() as well.
authorGünther Deschner <gd@samba.org>
Wed, 18 Sep 2013 16:23:40 +0000 (18:23 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 19 Sep 2013 09:09:32 +0000 (11:09 +0200)
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>
source3/auth/auth_generic.c

index e15c87edfc0d2a2c5a818fbce41cdea63c2b1df8..e07d3b7a9e903fa70d7a5501583f695f0283a802 100644 (file)
@@ -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