mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:rpc_server: Reinitialize dcesrv_context in external lsasd daemon
Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
80c57f238d
commit
3b52f1543c
@ -837,7 +837,8 @@ done:
|
||||
}
|
||||
|
||||
void start_lsasd(struct tevent_context *ev_ctx,
|
||||
struct messaging_context *msg_ctx)
|
||||
struct messaging_context *msg_ctx,
|
||||
struct dcesrv_context *dce_ctx)
|
||||
{
|
||||
NTSTATUS status;
|
||||
struct pf_listen_fd listen_fd[LSASD_MAX_SOCKETS];
|
||||
@ -936,6 +937,15 @@ void start_lsasd(struct tevent_context *ev_ctx,
|
||||
exit(1);
|
||||
}
|
||||
|
||||
DBG_INFO("Reinitializing DCE/RPC server context\n");
|
||||
|
||||
status = dcesrv_reinit_context(dce_ctx);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DBG_ERR("Failed to reinit DCE/RPC context: %s\n",
|
||||
nt_errstr(status));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
ok = lsasd_create_sockets(ev_ctx, msg_ctx, listen_fd, &listen_fd_size);
|
||||
if (!ok) {
|
||||
exit(1);
|
||||
|
@ -25,7 +25,10 @@
|
||||
#include "replace.h"
|
||||
#include "messages.h"
|
||||
|
||||
struct dcesrv_context;
|
||||
|
||||
void start_lsasd(struct tevent_context *ev_ctx,
|
||||
struct messaging_context *msg_ctx);
|
||||
struct messaging_context *msg_ctx,
|
||||
struct dcesrv_context *dce_ctx);
|
||||
|
||||
#endif
|
||||
|
@ -2110,7 +2110,7 @@ extern void build_options(bool screen);
|
||||
}
|
||||
|
||||
if (rpc_lsasd_daemon() == RPC_DAEMON_FORK) {
|
||||
start_lsasd(ev_ctx, msg_ctx);
|
||||
start_lsasd(ev_ctx, msg_ctx, dce_ctx);
|
||||
}
|
||||
|
||||
if (rpc_fss_daemon() == RPC_DAEMON_FORK) {
|
||||
|
Loading…
Reference in New Issue
Block a user