summaryrefslogtreecommitdiff
path: root/source3/lib/id_cache.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-08-19 17:36:53 +0200
committerSimo Sorce <idra@samba.org>2011-08-21 09:08:25 -0400
commit1152aa8e0354ed2446397725b75e905bef3c4afb (patch)
tree7cc257f9e159257c869eb226d3f61ea0d9a2bc8d /source3/lib/id_cache.h
parent61ada700a6ad010846b132d866c66220e6379054 (diff)
downloadsamba-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/lib/id_cache.h')
-rw-r--r--source3/lib/id_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/id_cache.h b/source3/lib/id_cache.h
index 9aa0e03586..208ce60e96 100644
--- a/source3/lib/id_cache.h
+++ b/source3/lib/id_cache.h
@@ -24,7 +24,7 @@ struct id_cache_ref {
struct dom_sid sid;
const char *name;
} id;
- enum {UID, GID, SID, NAME} type;
+ enum {UID, GID, SID, USERNAME} type;
};
bool id_cache_ref_parse(const char* str, struct id_cache_ref* id);