auth4: add auth_context_create_for_netlogon()
authorStefan Metzmacher <metze@samba.org>
Fri, 17 Mar 2017 11:08:59 +0000 (12:08 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 24 Mar 2017 10:57:09 +0000 (11:57 +0100)
For now it's the same as auth_context_create(), but this will
change the in the next 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>
source4/auth/auth.h
source4/auth/ntlm/auth.c

index feddb463c33a3c4139b3e4f768f75242ec1f10f7..95aacfe8eefa8461352afa11817701b96b7d2db5 100644 (file)
@@ -144,6 +144,11 @@ NTSTATUS auth_context_create(TALLOC_CTX *mem_ctx,
                             struct imessaging_context *msg,
                             struct loadparm_context *lp_ctx,
                             struct auth4_context **auth_ctx);
+NTSTATUS auth_context_create_for_netlogon(TALLOC_CTX *mem_ctx,
+                                         struct tevent_context *ev,
+                                         struct imessaging_context *msg,
+                                         struct loadparm_context *lp_ctx,
+                                         struct auth4_context **auth_ctx);
 
 NTSTATUS auth_check_password(struct auth4_context *auth_ctx,
                             TALLOC_CTX *mem_ctx,
index 22602441d82dce9174d887baa143b6ac7fa76134..926bf48e19262b1b99b3c64db7f42318453cc382 100644 (file)
@@ -645,6 +645,15 @@ _PUBLIC_ NTSTATUS auth_context_create(TALLOC_CTX *mem_ctx,
        return status;
 }
 
+_PUBLIC_ NTSTATUS auth_context_create_for_netlogon(TALLOC_CTX *mem_ctx,
+                                                  struct tevent_context *ev,
+                                                  struct imessaging_context *msg,
+                                                  struct loadparm_context *lp_ctx,
+                                                  struct auth4_context **auth_ctx)
+{
+       return auth_context_create(mem_ctx, ev, msg, lp_ctx, auth_ctx);
+}
+
 /* the list of currently registered AUTH backends */
 static struct auth_backend {
        const struct auth_operations *ops;