[PATCH] fix sid_to_uid() return correct sidtype

jra at dp.samba.org jra at dp.samba.org
Thu Feb 20 17:56:45 GMT 2003


On Thu, Feb 20, 2003 at 01:20:14PM +0100, Michael Steffens wrote:

> Noticed why :)
> The current caching code does also cache local lookups, meaning that
> local groups (and machine SIDs when Samba is running as DC) can also
> occur?
> 
> Hmm, I'm not sure whether the speed gain for local lookups outweighs
> the costs of having them wipe winbind SID mapping cache entries.
> The latter ones look more expensive to me.

Hmmm. True, but the local lookups could be going via NIS or another
method to a remote server. I also reduced the cache size to 10. Can
you test the code in you environment and see if it still gives the
speedup you noticed. If not I'll remove the local caching code.

Jeremy.


More information about the samba-technical mailing list