winbind: Retry LogonControl RPC in ping-dc after session expiration
authorChristof Schmitt <cs@samba.org>
Mon, 22 Dec 2014 23:19:47 +0000 (15:19 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 23 Dec 2014 01:46:34 +0000 (02:46 +0100)
commit2fdc55160309cec89aeb88243cb18d058c67e918
treefc71df906e765189e2cb2a54f9e4e879269d31be
parente4213512d0a967e87a74a1ae816c903fb38dd8b9
winbind: Retry LogonControl RPC in ping-dc after session expiration

When the underlying session expires, the LogonControl RPC call used in
ping-dc returns NT_STATUS_IO_DEVICE_ERROR. Retry once in this case,
instead of returning the error to the caller.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Dec 23 02:46:34 CET 2014 on sn-devel-104
source3/winbindd/winbindd_dual_srv.c