1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

samba-tool: avoid traceback for NT_STATUS_NETWORK_UNREACHABLE

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2022-08-19 17:06:48 +12:00 committed by Douglas Bagnall
parent 1137647460
commit 9078093620

View File

@ -120,6 +120,9 @@ class Command(object):
if ldb_ecode == ERR_INVALID_CREDENTIALS:
print("Invalid username or password", file=self.errf)
force_traceback = False
elif ldb_emsg == 'LDAP client internal error: NT_STATUS_NETWORK_UNREACHABLE':
print("Could not reach remote server", file=self.errf)
force_traceback = False
else:
self.errf.write("ERROR(ldb): %s - %s\n" % (message, ldb_emsg))
elif isinstance(inner_exception, AssertionError):