diff options
author | Markus Krogh <markus@nordu.net> | 2018-06-11 12:32:34 +0200 |
---|---|---|
committer | Markus Krogh <markus@nordu.net> | 2018-06-11 12:32:34 +0200 |
commit | b0958f35f44d9e233e453cd395e5f23f029177da (patch) | |
tree | 7e76296f7374534db18555ae2d9f2f22b447edbe | |
parent | dcbfaeee2a9b3df2d65af4a0b32075dd3b95ad19 (diff) |
Add extra check for existing password
-rw-r--r-- | kdc.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -33,7 +33,7 @@ func checkKerberosDuplicatePw(suffix, username, password string) error { err = kclient.Login() if err != nil { // error either means bad password or no connection etc. - if strings.Contains(err.Error(), "KDC_ERR_PREAUTH_REQUIRED") { + if strings.Contains(err.Error(), "KDC_ERR_PREAUTH_REQUIRED") || strings.Contains(err.Error(), "Decrypting_Error") { // Password did not match return nil } |