Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var FieldRegistry = newFieldRegistry()
FieldRegistry is designed to look and feel like an enum from another language like Python.
Example: Accessing constants
FieldRegistry.AccountExpires FieldRegistry.BadPasswordCount
Example: Utility methods
FieldRegistry.List()
FieldRegistry.Parse("givenName")
Functions ¶
func GetSchemaFieldRegistry ¶ added in v0.1.1
GetSchemaFieldRegistry type switches field registries depending on the configured schema. For example, IBM RACF has a custom OpenLDAP schema so the password is stored in a different attribute.
func SupportedSchemas ¶ added in v0.1.1
func SupportedSchemas() []string
SupportedSchemas returns a slice of different OpenLDAP schemas supported by the plugin. This is used to change the FieldRegistry when modifying user passwords.
func ValidSchema ¶ added in v0.1.1
ValidSchema checks if the configured schema is supported by the plugin.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) UpdateEntry ¶
func (*Client) UpdatePassword ¶
func (c *Client) UpdatePassword(cfg *Config, baseDN string, newValues map[*Field][]string, filters map[*Field][]string) error
UpdatePassword uses a Modify call under the hood instead of LDAP change password function. This allows AD and OpenLDAP secret engines to use the same api without changes to the interface.