Winbindd repeatedly retries failed connection entry (PATCH attached)

Jeremy Allison jra at
Mon Jan 30 20:21:00 GMT 2006

On Mon, Jan 30, 2006 at 11:52:04AM -0800, Qiao Yang wrote:
> Hi,
> I bumped into this bug the other day. Winbindd kept retrying to connect to a
> DC which is known to have failed in the last 30 seconds (should still be
> fresh).
> The problem is that in conncache.c: add_failed_connection_entry(), if there
> is already such an entry in cache it does nothing and returns. Timestamp of
> this entry is not updated. As a result, if there is an old (not expired yet)
> failed connection entry for the same DC there, winbindd will always think
> the entry is not fresh and keeps retrying.
> It should update the timestamp of this entry and refresh it so winbindd will
> not try to use it again in next 30 seconds. Patch to conncache.c is attached
> with this email.

Perfectly correct I think - applied to 3.0 and HEAD (not in 3.0.21b, it
didn't make the cut for the tarball - will be in subsequent releases though).

Thanks !


More information about the samba-technical mailing list