Hi, we are running into a problem that winbindd sometimes caches negative entries into its tdb database. We are still investigating the reason for that. However, another question, when winbindd caches an entry into its tdb database, is there any timeout for those tdb entries? While walking through the code I don't see any relation between winbindd_cache.c and idmap_tdb.c. Is winbindd_cache.c only for memory related caching? If I would like to add a cache timeout to the tdb database, what would be the best approach? Thanks in advance, Bernd PS: We are still using samba-3.0.22, and for several reasons also don't want to update our customer systems.
On Tue, 2007-05-15 at 18:41 +0200, Bernd Schubert wrote:> Hi, > > we are running into a problem that winbindd sometimes caches negative > entries into its tdb database. We are still investigating the reason for > that. > However, another question, when winbindd caches an entry into its tdb > database, is there any timeout for those tdb entries? While walking through > the code I don't see any relation between winbindd_cache.c and idmap_tdb.c. > Is winbindd_cache.c only for memory related caching? > > If I would like to add a cache timeout to the tdb database, what would be > the best approach? > > Thanks in advance, > Bernd > > > PS: We are still using samba-3.0.22, and for several reasons also don't want > to update our customer systems.In 3.0.25 we have reworked the idmap subsystem and we made available both positive and negative cache timeouts for the cache (which is separate from idmap_tdb itself now). If you can;t change version you can probably borrow the code from there somehow. I think I also posted some code for 3.0.24 a few months ago that implemented a negative caching system with timeout, before we decided for the major rework. Search the archives. Simo. -- Simo Sorce Samba Team GPL Compliance Officer email: idra@samba.org http://samba.org
On Tuesday 15 May 2007 19:29:35 you wrote:> In 3.0.25 we have reworked the idmap subsystem and we made available > both positive and negative cache timeouts for the cache (which is > separate from idmap_tdb itself now). > > If you can;t change version you can probably borrow the code from there > somehow. I think I also posted some code for 3.0.24 a few months ago > that implemented a negative caching system with timeout, before we > decided for the major rework. > Search the archives.Thanks a lot for your help, I found your patches (http://samba.org/~idra/patches/). Hmm, they are not what I would call small and nothing what I would like to test on a running system... For now we will increase the connection timeout to winbindd, hopefully this will already help. Thanks again, Bernd -- Bernd Schubert Q-Leap Networks GmbH