diff options
Diffstat (limited to 'path_config.go')
-rw-r--r-- | path_config.go | 19 |
1 files changed, 0 insertions, 19 deletions
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 { |