NTSTATUS status = NT_STATUS_OK;
struct dcerpc_call *call;
struct tevent_req *subreq;
+ struct auth_generic_state *auth_generic_ctx;
+ struct gensec_security *gensec = NULL;
struct dcerpc_presentation *pres[1];
ev = samba_tevent_context_init(frame);
goto fail;
}
+ auth_generic_ctx = auth->auth_ctx;
+ if (auth_generic_ctx) {
+ gensec = auth_generic_ctx->gensec_security;
+ auth_generic_ctx->gensec_security = NULL;
+ }
+
cli->sec = dcerpc_security_allocate(cli, cli->conn,
auth->auth_type,
auth->auth_level,
- auth->auth_ctx);
+ &gensec);
call = dcerpc_call_allocate(frame, cli->assoc, NULL, NULL);