mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
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>
This commit is contained in:
parent
c819c7d58f
commit
5c1e2f564b
@ -1619,9 +1619,6 @@ void set_auth_errors(struct winbindd_response *resp, NTSTATUS result)
|
||||
|
||||
bool is_domain_offline(const struct winbindd_domain *domain)
|
||||
{
|
||||
if (!lp_winbind_offline_logon()) {
|
||||
return false;
|
||||
}
|
||||
if (get_global_winbindd_state_offline()) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user