From 177db0a8802842a0eb9801622bee9f4c1592ef88 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 19 Aug 2011 17:28:37 +0200 Subject: 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 --- source3/smbd/server.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/smbd/server.c') 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()) { -- cgit