summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-08-19 17:28:37 +0200
committerSimo Sorce <idra@samba.org>2011-08-21 09:08:25 -0400
commit177db0a8802842a0eb9801622bee9f4c1592ef88 (patch)
tree7e6ce29f00fa7ef54649b799af50dcfc8c798e2d /source3/smbd/server.c
parent0f4ee5d1b7bc1e8122982450dc0730ac1500a9c9 (diff)
downloadsamba-177db0a8802842a0eb9801622bee9f4c1592ef88.tar.gz
samba-177db0a8802842a0eb9801622bee9f4c1592ef88.tar.bz2
samba-177db0a8802842a0eb9801622bee9f4c1592ef88.zip
s3-id_cache: Move id caches mgmt out of smbd
We must leave the MSG_IDMAP_KILL operation in SMBD as it uses smbd specific internal globals and makes sense only in the context of a smbd daemon. The rest is moved under lib/ as we need to deal with id cache cleanups in other daemons too (like lsasd). Signed-off-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index cc53f69626..e547d38581 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -39,6 +39,7 @@
#include "auth.h"
#include "messages.h"
#include "smbprofile.h"
+#include "lib/id_cache.h"
extern void start_epmd(struct tevent_context *ev_ctx,
struct messaging_context *msg_ctx);
@@ -749,6 +750,7 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent,
brl_register_msgs(msg_ctx);
msg_idmap_register_msgs(msg_ctx);
+ msg_idmap_register_kill_msg(msg_ctx);
#ifdef CLUSTER_SUPPORT
if (lp_clustering()) {