summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_cache.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-12-11 14:27:54 +0100
committerVolker Lendecke <vlendec@samba.org>2010-12-19 23:25:06 +0100
commita159958065e195413f459a82643c780d80b6c088 (patch)
tree098103983dc2f65914c3fca8249b21bbf1c85d20 /source3/winbindd/winbindd_cache.c
parente113b1c64f1dfd84911050379d06d9ffc4958db3 (diff)
downloadsamba-a159958065e195413f459a82643c780d80b6c088.tar.gz
samba-a159958065e195413f459a82643c780d80b6c088.tar.bz2
samba-a159958065e195413f459a82643c780d80b6c088.zip
s3: wcache_invalidate_samlogon only needs the SID
Diffstat (limited to 'source3/winbindd/winbindd_cache.c')
-rw-r--r--source3/winbindd/winbindd_cache.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index 7663063aeb..37291a70ab 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -2999,9 +2999,8 @@ static int traverse_fn(TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_DATA dbuf,
/* Invalidate the getpwnam and getgroups entries for a winbindd domain */
void wcache_invalidate_samlogon(struct winbindd_domain *domain,
- struct netr_SamInfo3 *info3)
+ const struct dom_sid *sid)
{
- struct dom_sid sid;
fstring key_str, sid_string;
struct winbind_cache *cache;
@@ -3021,20 +3020,18 @@ void wcache_invalidate_samlogon(struct winbindd_domain *domain,
return;
}
- sid_compose(&sid, info3->base.domain_sid, info3->base.rid);
-
/* Clear U/SID cache entry */
- fstr_sprintf(key_str, "U/%s", sid_to_fstring(sid_string, &sid));
+ fstr_sprintf(key_str, "U/%s", sid_to_fstring(sid_string, sid));
DEBUG(10, ("wcache_invalidate_samlogon: clearing %s\n", key_str));
tdb_delete(cache->tdb, string_tdb_data(key_str));
/* Clear UG/SID cache entry */
- fstr_sprintf(key_str, "UG/%s", sid_to_fstring(sid_string, &sid));
+ fstr_sprintf(key_str, "UG/%s", sid_to_fstring(sid_string, sid));
DEBUG(10, ("wcache_invalidate_samlogon: clearing %s\n", key_str));
tdb_delete(cache->tdb, string_tdb_data(key_str));
/* Samba/winbindd never needs this. */
- netsamlogon_clear_cached_user(&sid);
+ netsamlogon_clear_cached_user(sid);
}
bool wcache_invalidate_cache(void)