From 1152aa8e0354ed2446397725b75e905bef3c4afb Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 19 Aug 2011 17:36:53 +0200 Subject: s3-passdb: Keep caches coherent When deleting a user send a message to all interested parties so they can purge their caches. Otherwise some processes may positively respond with a cached getpwnam, when the user have actully been removed. Without this some tests that remove and then immediately create users are flakey. Signed-off-by: Simo Sorce --- source3/rpc_server/lsasd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/lsasd.c b/source3/rpc_server/lsasd.c index 1c6bde6082..4469007308 100644 --- a/source3/rpc_server/lsasd.c +++ b/source3/rpc_server/lsasd.c @@ -24,6 +24,8 @@ #include "messages.h" #include "ntdomain.h" +#include "lib/id_cache.h" + #include "../lib/tsocket/tsocket.h" #include "lib/server_prefork.h" #include "lib/server_prefork_util.h" @@ -267,6 +269,7 @@ static bool lsasd_child_init(struct tevent_context *ev_ctx, MSG_SMB_CONF_UPDATED, lsasd_smb_conf_updated); messaging_register(msg_ctx, ev_ctx, MSG_PREFORK_PARENT_EVENT, parent_ping); + id_cache_register_msgs(msg_ctx); status = rpc_lsarpc_init(NULL); if (!NT_STATUS_IS_OK(status)) { -- cgit