From 7045a630996e08c18beb7c3d39e1b2752c8a4ba4 Mon Sep 17 00:00:00 2001 From: Aria Date: Sun, 1 Oct 2023 22:55:08 +0100 Subject: a working version with only changing passwords --- path_config.go | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'path_config.go') diff --git a/path_config.go b/path_config.go index a89488b..8a3187e 100644 --- a/path_config.go +++ b/path_config.go @@ -80,15 +80,6 @@ func configSchema() map[string]*framework.FieldSchema { Sensitive: false, }, }, - "admin_server": { - Type: framework.TypeCommaStringSlice, - Description: "Available admin servers for the realm", - Required: true, - DisplayAttrs: &framework.DisplayAttributes{ - Name: "Admin Servers", - Sensitive: false, - }, - }, "kpasswd_server": { Type: framework.TypeCommaStringSlice, Description: "KPasswd servers for the realm", @@ -127,7 +118,6 @@ func (b *krbBackend) pathConfigRead(ctx context.Context, req *logical.Request, d Data: map[string]interface{}{ "realm": config.Realm, "kdc": config.KDC, - "admin_server": config.AdminServer, "kpasswd_server": config.KPasswdServer, "username": config.Username, }, @@ -166,15 +156,6 @@ func (b *krbBackend) pathConfigWrite(ctx context.Context, req *logical.Request, return nil, fmt.Errorf("no KDCs specified") } - if admin_server, ok := data.GetOk("admin_server"); ok { - c.AdminServer = admin_server.([]string) - } else if !ok && createOperation { - return nil, fmt.Errorf("missing admin servers in configuration") - } - if len(c.AdminServer) == 0 { - return nil, fmt.Errorf("no admin servers specified") - } - if kpasswd_server, ok := data.GetOk("kpasswd_server"); ok { c.KPasswdServer = kpasswd_server.([]string) } else if !ok && createOperation { -- cgit v1.2.3