From b277cd3b0652c2cc7ac3f9c8ce37ea714586230b Mon Sep 17 00:00:00 2001 From: mpgn Date: Sun, 18 Sep 2022 07:04:14 -0400 Subject: [PATCH] Better LDAP error message --- cme/protocols/ldap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cme/protocols/ldap.py b/cme/protocols/ldap.py index 098382ef..631f3da2 100644 --- a/cme/protocols/ldap.py +++ b/cme/protocols/ldap.py @@ -303,7 +303,7 @@ class ldap(connection): self.logger.error(u'{}\\{}:{} {}'.format(self.domain, self.username, self.password if not self.config.get('CME', 'audit_mode') else self.config.get('CME', 'audit_mode')*8, - "Error connecting to the domain, please add option --kdcHost with the FQDN of the domain controller")) + "Error connecting to the domain, please add option --kdcHost with the FQDN of the domain controller or add the IP/HOST to your /etc/host file")) return False @@ -391,7 +391,7 @@ class ldap(connection): self.logger.error(u'{}\\{}:{} {}'.format(self.domain, self.username, nthash if not self.config.get('CME', 'audit_mode') else self.config.get('CME', 'audit_mode')*8, - "Error connecting to the domain, please add option --kdcHost with the FQDN of the domain controller")) + "Error connecting to the domain, please add option --kdcHost with the FQDN of the domain controller or add the IP/HOST to your /etc/host file")) return False def create_smbv1_conn(self):