Skip to content

Commit 6e29e26

Browse files
committed
improved error message for kerberos authentication when KDC cannot be resolved
to use samba tools with kerberos, the SRV record for _kerberos needs to be resolvable. when this isn't the case, the error message indicated an unspecific logon failure. improve the message and point the user to check DNS settings or setup the config file /etc/krb5.conf.
1 parent df91a01 commit 6e29e26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enum4linux-ng.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ def run(self, log, error_filter=True):
545545
output = output.replace(line, "")
546546
output = output.rstrip('\n')
547547

548+
if "Cannot find KDC for realm" in output:
549+
return Result(False, "Cannot find KDC for realm, check DNS settings or setup /etc/krb5.conf")
550+
548551
if retval == 1 and not output:
549552
return Result(False, "empty response")
550553

0 commit comments

Comments
 (0)