diff options
author | Aria <me@aria.rip> | 2023-10-01 22:55:08 +0100 |
---|---|---|
committer | Aria <me@aria.rip> | 2023-10-01 22:55:08 +0100 |
commit | 7045a630996e08c18beb7c3d39e1b2752c8a4ba4 (patch) | |
tree | e539793ccb588433f44cc0e1b52821cb6953a85a /path_config.go | |
parent | ca56d194c605ef7ba09f46eff11374b492f83804 (diff) |
a working version with only changing passwords
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 { |