From 01e76110501785a65387c360fcfee85fbf3a4fde Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Fri, 18 Feb 2011 14:42:18 +0100 Subject: s3: add functions to flush the idmap memcache --- source3/passdb/lookup_sid.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source3/passdb') diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index 0e1b8d6c82..f1462af686 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -1642,3 +1642,17 @@ done: TALLOC_FREE(tmp_ctx); return NT_STATUS_OK; } + +void flush_gid_cache(void) +{ + DEBUG(3, ("Flush GID <-> SID memcache\n")); + memcache_flush(NULL, SID_GID_CACHE); + memcache_flush(NULL, GID_SID_CACHE); +} + +void flush_uid_cache(void) +{ + DEBUG(3, ("Flush UID <-> SID memcache\n")); + memcache_flush(NULL, SID_UID_CACHE); + memcache_flush(NULL, UID_SID_CACHE); +} -- cgit