#include "libcli/ldap/ldap.h"
#include "lib/events/events.h"
#include "lib/socket/socket.h"
+#include "lib/messaging/irpc.h"
#include "smbd/service_task.h"
#include "cldap_server/cldap_server.h"
task_server_terminate(task, "cldapd failed to setup interfaces");
return;
}
+
+ irpc_add_name(task->msg_ctx, "cldap_server");
}
#include "smbd/service_stream.h"
#include "lib/socket/socket.h"
#include "lib/tls/tls.h"
+#include "lib/messaging/irpc.h"
/*
close the socket and shutdown a server_context
c->event.fde, NULL, port != 389);
if (conn->tls == NULL) goto failed;
+ irpc_add_name(c->msg_ctx, "ldap_server");
+
return;
failed:
NTSTATUS irpc_register(struct messaging_context *msg_ctx,
const struct dcerpc_interface_table *table,
int call, irpc_function_t fn, void *private);
+NTSTATUS irpc_add_name(struct messaging_context *msg_ctx, const char *name);
struct irpc_request *irpc_call_send(struct messaging_context *msg_ctx,
uint32_t server_id,
const struct dcerpc_interface_table *table,
table, callnum, r);
return irpc_call_recv(irpc);
}
+
+/*
+ add a string name that this irpc server can be called on
+*/
+NTSTATUS irpc_add_name(struct messaging_context *msg_ctx, const char *name)
+{
+ return NT_STATUS_OK;
+}
+
+
/* start the process of registering our names on all interfaces */
nbtd_register_names(nbtsrv);
+
+ irpc_add_name(task->msg_ctx, "nbt_server");
}
#include "dlinklist.h"
#include "smbd/service_stream.h"
#include "smb_server/smb_server.h"
+#include "lib/messaging/irpc.h"
/*
smb_conn->processing = False;
conn->private = smb_conn;
+
+ irpc_add_name(conn->msg_ctx, "smb_server");
}