diff options
Diffstat (limited to 'source3/libsmb/samlogon_cache.c')
-rw-r--r-- | source3/libsmb/samlogon_cache.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source3/libsmb/samlogon_cache.c b/source3/libsmb/samlogon_cache.c index 52fbe04351..f3ef9547b7 100644 --- a/source3/libsmb/samlogon_cache.c +++ b/source3/libsmb/samlogon_cache.c @@ -99,25 +99,19 @@ bool netsamlogon_cache_shutdown(void) Clear cache getpwnam and getgroups entries from the winbindd cache ***********************************************************************/ -void netsamlogon_clear_cached_user(struct netr_SamInfo3 *info3) +void netsamlogon_clear_cached_user(const struct dom_sid *user_sid) { - struct dom_sid user_sid; fstring keystr; - if (!info3) { - return; - } - if (!netsamlogon_cache_init()) { DEBUG(0,("netsamlogon_clear_cached_user: cannot open " "%s for write!\n", NETSAMLOGON_TDB)); return; } - sid_compose(&user_sid, info3->base.domain_sid, info3->base.rid); /* Prepare key as DOMAIN-SID/USER-RID string */ - sid_to_fstring(keystr, &user_sid); + sid_to_fstring(keystr, user_sid); DEBUG(10,("netsamlogon_clear_cached_user: SID [%s]\n", keystr)); |