From c6881d1e650fd284a366af76f5a214a5de05cc0c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 10 Jul 2005 01:08:10 +0000 Subject: r8272: added the hooks for adding a name to a messaging context, so we will be able to send a message to the "ldap_server" task without having to know its task ID. (This used to be commit 8f69867867857e0c9a9246c2dec9612ccc234724) --- source4/ldap_server/ldap_server.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/ldap_server/ldap_server.c') diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index 9c0e883e36..c898471e27 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -32,6 +32,7 @@ #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 @@ -358,6 +359,8 @@ static void ldapsrv_accept(struct stream_connection *c) c->event.fde, NULL, port != 389); if (conn->tls == NULL) goto failed; + irpc_add_name(c->msg_ctx, "ldap_server"); + return; failed: -- cgit