mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
better detection of dead ADS connections, so we have some chance of
reconnecting
(This used to be commit 58b79c0dc8
)
This commit is contained in:
parent
d0f80d2c41
commit
e1aed4f49c
@ -723,6 +723,12 @@ static NTSTATUS domain_sid(struct winbindd_domain *domain, DOM_SID *sid)
|
||||
|
||||
rc = ads_domain_sid(ads, sid);
|
||||
|
||||
if (!ADS_ERR_OK(rc)) {
|
||||
/* its a dead connection */
|
||||
ads_destroy(ads);
|
||||
domain->private = NULL;
|
||||
}
|
||||
|
||||
return ads_ntstatus(rc);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user