diff --git a/nxc/protocols/ldap.py b/nxc/protocols/ldap.py index 4c521554..908a6971 100644 --- a/nxc/protocols/ldap.py +++ b/nxc/protocols/ldap.py @@ -205,6 +205,9 @@ class ldap(connection): except Exception as e: self.logger.debug("Exception:", exc_info=True) self.logger.info(f"Skipping item, cannot process due to error {e}") + except ConnectionRefusedError as e: + self.logger.debug(f"{e} on host {self.host}") + return False except OSError as e: self.logger.error(f"Error getting ldap info {e}")