Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
/* Kerberos context, set up on demand */
struct smb_krb5_context *smb_krb5_context;
+ bool for_netlogon;
+
struct tevent_req *(*check_ntlm_password_send)(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct auth4_context *auth_ctx,
status = auth_context_create_methods(mem_ctx, auth_methods, ev, msg,
lp_ctx, NULL, auth_ctx);
talloc_free(_auth_methods);
- return status;
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ (*auth_ctx)->for_netlogon = true;
+ return NT_STATUS_OK;
}
/* the list of currently registered AUTH backends */