From 58a7662e577c8a914e580b175320ccf4f6137a18 Mon Sep 17 00:00:00 2001 From: Markus Krogh Date: Wed, 13 Jun 2018 12:39:20 +0200 Subject: Handle all PreAuth fails --- kdc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdc.go b/kdc.go index 252658b..6ccccff 100644 --- a/kdc.go +++ b/kdc.go @@ -34,7 +34,7 @@ func checkKerberosDuplicatePw(suffix, username, password string) error { err = kclient.Login() if err != nil { // error either means bad password or no connection etc. - if containsEither(err.Error(), "KDC_ERR_PREAUTH_REQUIRED", "Decrypting_Error", "KDC_ERR_C_PRINCIPAL_UNKNOWN") { + if containsEither(err.Error(), "KDC_ERR_PREAUTH", "Decrypting_Error", "KDC_ERR_C_PRINCIPAL_UNKNOWN") { // Password did not match return nil } -- cgit v1.1