winbindd: Add retry also for ADS method calls
authorChristof Schmitt <cs@samba.org>
Tue, 5 Jan 2016 21:37:30 +0000 (14:37 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 12 Jan 2016 23:26:16 +0000 (00:26 +0100)
commite4adf55e242aa5f000570bf554fcd15d7e86c126
treeb9a8e7710684def1604b4e1623250b5f6b031f40
parentfb5b0cec3c0c2e0cf9cb04f8b52ee910ac245aeb
winbindd: Add retry also for ADS method calls

RPC calls can return IO_DEVICE_ERROR on expired SMB2 sessions. Retrying
on a new connection avoids surfacing this error to winbindd clients.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11670

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_cache.c
source3/winbindd/winbindd_ndr.c
source3/winbindd/winbindd_proto.h
source3/winbindd/winbindd_reconnect.c
source3/winbindd/winbindd_reconnect_ads.c [new file with mode: 0644]
source3/wscript_build