winbindd: avoid refreshing sequence number when domain is offline
commit5c1e2f564ba75212be9fc48f8a6788a017060420
authorUri Simchoni <uri@samba.org>
Wed, 7 Jun 2017 17:34:33 +0000 (7 20:34 +0300)
committerJeremy Allison <jra@samba.org>
Fri, 21 Jul 2017 17:11:13 +0000 (21 19:11 +0200)
treec9fe52af847fb92f7e1370ac60851ca5b5c98a5f
parentc819c7d58f05692628eb9673dfdca5dc1d212d43
winbindd: avoid refreshing sequence number when domain is offline

When there's no connectivity to the domain, avoid attempt to
refresh sequence number. Before the change, this was avoided
only if winbind offline logon was enabled. However, being
able to operate based on cached data is desired even when
offline logons are disabled (offline logons are about caching
credentials for PAM authentication, a user may not want this
and still want service from the SMB server during short
AD disconnects).

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_util.c