diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/netcmd/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/samba/netcmd/__init__.py b/python/samba/netcmd/__init__.py index b98f8a47fd0..0cb2ee43765 100644 --- a/python/samba/netcmd/__init__.py +++ b/python/samba/netcmd/__init__.py @@ -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): |
