summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2018-06-13 12:39:20 +0200
committerMarkus Krogh <markus@nordu.net>2018-06-13 12:39:20 +0200
commit58a7662e577c8a914e580b175320ccf4f6137a18 (patch)
treee9f1dab7daa5fbd1eb4ba8d271e6eb16a53ac026
parent3b541ed3413cba28e8a3ea498203d7f584c87e78 (diff)
Handle all PreAuth fails
-rw-r--r--kdc.go2
1 files changed, 1 insertions, 1 deletions
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
}