diff options
author | Markus Krogh <markus@nordu.net> | 2018-06-13 12:39:20 +0200 |
---|---|---|
committer | Markus Krogh <markus@nordu.net> | 2018-06-13 12:39:20 +0200 |
commit | 58a7662e577c8a914e580b175320ccf4f6137a18 (patch) | |
tree | e9f1dab7daa5fbd1eb4ba8d271e6eb16a53ac026 | |
parent | 3b541ed3413cba28e8a3ea498203d7f584c87e78 (diff) |
Handle all PreAuth fails
-rw-r--r-- | kdc.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |