diff options
author | Markus Krogh <markus@nordu.net> | 2018-06-13 14:32:59 +0200 |
---|---|---|
committer | Markus Krogh <markus@nordu.net> | 2018-06-13 14:32:59 +0200 |
commit | 2fa87628ed738f6bf4be2bf0e3285402b32ebd0f (patch) | |
tree | a9c782c9487b580ca1469968b5b72984d757b449 /kdc.go | |
parent | a8950d615bc5a04edfd776a6209ac48c437803de (diff) |
Move containsEither
Diffstat (limited to 'kdc.go')
-rw-r--r-- | kdc.go | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -44,15 +44,6 @@ func checkKerberosDuplicatePw(suffix, username, password string) error { return fmt.Errorf("Password already used with: %s account", suffix) } -func containsEither(what string, substr ...string) bool { - for _, str := range substr { - if strings.Contains(what, str) { - return true - } - } - return false -} - func ChangeKerberosPw(suffix, username, new_password string) error { kerberos_uid := fmt.Sprintf("%s%s", username, suffixMap[suffix]) // call script |