1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

winbindd: Show warning message on tc connection errors too

Some of these conditions could never be hit.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-03-07 11:13:41 +13:00 committed by Andrew Bartlett
parent ed0b850e3d
commit 3c5296d9ae

View File

@ -1214,7 +1214,9 @@ check_return:
}
info2->tc_connection_status = check_result;
if (!W_ERROR_IS_OK(info2->pdc_connection_status)) {
if (!W_ERROR_IS_OK(info2->pdc_connection_status) ||
!W_ERROR_IS_OK(info2->tc_connection_status))
{
DEBUG(2, ("%s: domain[%s/%s] dcname[%s] "
"pdc_connection[%s] tc_connection[%s]\n",
__func__, domain->name, domain->alt_name,
@ -1282,7 +1284,9 @@ check_return:
}
info2->tc_connection_status = check_result;
if (!W_ERROR_IS_OK(info2->pdc_connection_status)) {
if (!W_ERROR_IS_OK(info2->pdc_connection_status) ||
!W_ERROR_IS_OK(info2->tc_connection_status))
{
DEBUG(2, ("%s: domain[%s/%s] dcname[%s] "
"pdc_connection[%s] tc_connection[%s]\n",
__func__, domain->name, domain->alt_name,
@ -1604,7 +1608,9 @@ verify_return:
}
info2->tc_connection_status = check_result;
if (!W_ERROR_IS_OK(info2->pdc_connection_status)) {
if (!W_ERROR_IS_OK(info2->pdc_connection_status) ||
!W_ERROR_IS_OK(info2->tc_connection_status))
{
DEBUG(2, ("%s: domain[%s/%s] dcname[%s] "
"pdc_connection[%s] tc_connection[%s]\n",
__func__, domain->name, domain->alt_name,