s3-passdb: Keep caches coherent
authorAndreas Schneider <asn@samba.org>
Fri, 19 Aug 2011 15:36:53 +0000 (17:36 +0200)
committerSimo Sorce <idra@samba.org>
Sun, 21 Aug 2011 13:08:25 +0000 (09:08 -0400)
commit1152aa8e0354ed2446397725b75e905bef3c4afb
tree7cc257f9e159257c869eb226d3f61ea0d9a2bc8d
parent61ada700a6ad010846b132d866c66220e6379054
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>
source3/lib/id_cache.c
source3/lib/id_cache.h
source3/passdb/pdb_interface.c
source3/rpc_server/lsasd.c