Changeset 204 for branches/samba-3.2.x/source/winbindd/winbindd_cache.c
- Timestamp:
- May 20, 2009, 6:46:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/winbindd/winbindd_cache.c
r141 r204 2266 2266 struct netr_SamInfo3 *info3) 2267 2267 { 2268 DOM_SID sid; 2269 fstring key_str, sid_string; 2268 2270 struct winbind_cache *cache; 2269 2271 … … 2279 2281 2280 2282 cache = get_cache(domain); 2281 netsamlogon_clear_cached_user(cache->tdb, info3); 2283 2284 if (!cache->tdb) { 2285 return; 2286 } 2287 2288 sid_copy(&sid, info3->base.domain_sid); 2289 sid_append_rid(&sid, info3->base.rid); 2290 2291 /* Clear U/SID cache entry */ 2292 fstr_sprintf(key_str, "U/%s", sid_to_fstring(sid_string, &sid)); 2293 DEBUG(10, ("wcache_invalidate_samlogon: clearing %s\n", key_str)); 2294 tdb_delete(cache->tdb, string_tdb_data(key_str)); 2295 2296 /* Clear UG/SID cache entry */ 2297 fstr_sprintf(key_str, "UG/%s", sid_to_fstring(sid_string, &sid)); 2298 DEBUG(10, ("wcache_invalidate_samlogon: clearing %s\n", key_str)); 2299 tdb_delete(cache->tdb, string_tdb_data(key_str)); 2300 2301 /* Samba/winbindd never needs this. */ 2302 netsamlogon_clear_cached_user(info3); 2282 2303 } 2283 2304
Note:
See TracChangeset
for help on using the changeset viewer.