auth3: add make_auth3_context_for_{ntlm,netlogon,winbind}
authorStefan Metzmacher <metze@samba.org>
Fri, 17 Mar 2017 08:13:02 +0000 (09:13 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 24 Mar 2017 10:57:09 +0000 (11:57 +0100)
For now they'll all do the same, but that will change in the following commits.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/auth/auth.c
source3/auth/proto.h

index 7769c23c9c05d2e1f57514f8c53cb8dac460ad0f..ed42740a82dd880f8e02ac064284781e46d1dee8 100644 (file)
@@ -528,6 +528,24 @@ NTSTATUS make_auth_context_subsystem(TALLOC_CTX *mem_ctx,
        return make_auth_context_specific(mem_ctx, auth_context, methods);
 }
 
+NTSTATUS make_auth3_context_for_ntlm(TALLOC_CTX *mem_ctx,
+                                    struct auth_context **auth_context)
+{
+       return make_auth_context_subsystem(mem_ctx, auth_context);
+}
+
+NTSTATUS make_auth3_context_for_netlogon(TALLOC_CTX *mem_ctx,
+                                        struct auth_context **auth_context)
+{
+       return make_auth_context_subsystem(mem_ctx, auth_context);
+}
+
+NTSTATUS make_auth3_context_for_winbind(TALLOC_CTX *mem_ctx,
+                                       struct auth_context **auth_context)
+{
+       return make_auth_context_subsystem(mem_ctx, auth_context);
+}
+
 bool auth3_context_set_challenge(struct auth_context *ctx, uint8_t chal[8],
                                 const char *challenge_set_by)
 {
index 5ffe757f1312c41b4b26713da26939d870f0e01c..92b2a8508528933b5742b15d41de3287567d36e1 100644 (file)
@@ -40,6 +40,12 @@ bool load_auth_module(struct auth_context *auth_context,
                      const char *module, auth_methods **ret) ;
 NTSTATUS make_auth_context_subsystem(TALLOC_CTX *mem_ctx,
                                     struct auth_context **auth_context);
+NTSTATUS make_auth3_context_for_ntlm(TALLOC_CTX *mem_ctx,
+                                    struct auth_context **auth_context);
+NTSTATUS make_auth3_context_for_netlogon(TALLOC_CTX *mem_ctx,
+                                        struct auth_context **auth_context);
+NTSTATUS make_auth3_context_for_winbind(TALLOC_CTX *mem_ctx,
+                                       struct auth_context **auth_context);
 bool auth3_context_set_challenge(struct auth_context *ctx, uint8_t chal[8],
                                 const char *challenge_set_by);