summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2018-06-11 12:32:34 +0200
committerMarkus Krogh <markus@nordu.net>2018-06-11 12:32:34 +0200
commitb0958f35f44d9e233e453cd395e5f23f029177da (patch)
tree7e76296f7374534db18555ae2d9f2f22b447edbe
parentdcbfaeee2a9b3df2d65af4a0b32075dd3b95ad19 (diff)
Add extra check for existing password
-rw-r--r--kdc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/kdc.go b/kdc.go
index ebb1c04..e3cc02e 100644
--- a/kdc.go
+++ b/kdc.go
@@ -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
}