Bug 5015 - connection timeouts cause authentication failures
connection timeouts cause authentication failures
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: winbind
3.0.22
Other Linux
: P3 normal
: none
Assigned To: Volker Lendecke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-08 05:58 UTC by Martijn Vernooij (550 unknown address)
Modified: 2014-07-24 20:29 UTC (History)
2 users (show)

See Also:


Attachments
patch to reconnect on receiving connection closed (486 bytes, patch)
2007-10-08 05:59 UTC, Martijn Vernooij (550 unknown address)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martijn Vernooij (550 unknown address) 2007-10-08 05:58:20 UTC
Depending on network setup (local stateful filtering, NAT), the network connection from winbind to the domain controller may often be closed unexpectedly. Apparently winbind tries to mitigate by doing a domains refresh every 5 minutes. Unfortunately the typical timeout on stateful filters is 3 minutes. Anyway this is not really the right approach.

The attached patch fixes this problem by interpreting the error the code gets when the connection was unexpectedly closed as a transient error and retrying instead of returning the error.

The patch is against the Ubuntu 3.0.22-1ubuntu3.3 packages, the code has changed since, but porting to the recent version shouldn't be hard.
Comment 1 Martijn Vernooij (550 unknown address) 2007-10-08 05:59:12 UTC
Created attachment 2939 [details]
patch to reconnect on receiving connection closed
Comment 2 Björn Jacke 2014-07-24 20:29:07 UTC
Volker, Günther: can you have a look at this?