1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +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:
Andrew Tridgell 2002-03-09 19:36:53 +00:00
parent d0f80d2c41
commit e1aed4f49c

View File

@ -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);
}