summaryrefslogtreecommitdiff
path: root/kdc.go
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2018-06-13 14:32:59 +0200
committerMarkus Krogh <markus@nordu.net>2018-06-13 14:32:59 +0200
commit2fa87628ed738f6bf4be2bf0e3285402b32ebd0f (patch)
treea9c782c9487b580ca1469968b5b72984d757b449 /kdc.go
parenta8950d615bc5a04edfd776a6209ac48c437803de (diff)
Move containsEither
Diffstat (limited to 'kdc.go')
-rw-r--r--kdc.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/kdc.go b/kdc.go
index 6ccccff..52ed0de 100644
--- a/kdc.go
+++ b/kdc.go
@@ -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