#include "librpc/gen_ndr/ndr_lsa_c.h"
#include "winbind/wb_server.h"
+#include "smbd/service_task.h"
/* Helper to initialize LSA with a specific auth methods. Verify by opening
* the LSA policy. */
struct composite_context *result, *ctx;
struct init_lsa_state *state;
- result = composite_create(mem_ctx, domain->netlogon_pipe->conn->event_ctx);
+ result = composite_create(mem_ctx, domain->service->task->event_ctx);
if (result == NULL) goto failed;
state = talloc(result, struct init_lsa_state);
#include "libcli/security/security.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
#include "winbind/wb_server.h"
+#include "smbd/service_task.h"
/* Helper to initialize SAMR with a specific auth methods. Verify by opening
struct composite_context *result, *ctx;
struct connect_samr_state *state;
- result = composite_create(mem_ctx, domain->netlogon_pipe->conn->event_ctx);
+ result = composite_create(mem_ctx, domain->service->task->event_ctx);
if (result == NULL) goto failed;
state = talloc(result, struct connect_samr_state);
state->domain = talloc(state, struct wbsrv_domain);
if (state->domain == NULL) goto failed;
+ state->domain->service = service;
+
state->domain->info = talloc_reference(state->domain, dom_info);
if (state->domain->info == NULL) goto failed;
struct wbsrv_domain {
struct wbsrv_domain *next, *prev;
+ struct wbsrv_service *service;
+
struct wb_dom_info *info;
/* Details for the server we are currently talking to */