diff options
author | Andreas Schneider <asn@samba.org> | 2011-08-19 17:36:53 +0200 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2011-08-21 09:08:25 -0400 |
commit | 1152aa8e0354ed2446397725b75e905bef3c4afb (patch) | |
tree | 7cc257f9e159257c869eb226d3f61ea0d9a2bc8d /source3/rpc_server | |
parent | 61ada700a6ad010846b132d866c66220e6379054 (diff) | |
download | samba-1152aa8e0354ed2446397725b75e905bef3c4afb.tar.gz samba-1152aa8e0354ed2446397725b75e905bef3c4afb.tar.bz2 samba-1152aa8e0354ed2446397725b75e905bef3c4afb.zip |
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 <idra@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/lsasd.c | 3 |
1 files changed, 3 insertions, 0 deletions
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)) { |