struct auth_context **auth_context)
{
const char *methods = NULL;
+ NTSTATUS status;
switch (lp_server_role()) {
case ROLE_DOMAIN_BDC:
return NT_STATUS_INVALID_SERVER_STATE;
}
- return make_auth_context_specific(mem_ctx, auth_context, methods);
+ status = make_auth_context_specific(mem_ctx, auth_context, methods);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ (*auth_context)->for_netlogon = true;
+ return NT_STATUS_OK;
}
NTSTATUS make_auth3_context_for_winbind(TALLOC_CTX *mem_ctx,
/* What order are the various methods in? Try to stop it changing under us */
struct auth_methods *auth_method_list;
+ bool for_netlogon;
+
prepare_gensec_fn prepare_gensec;
make_auth4_context_fn make_auth4_context;
const char *forced_samba4_methods;