Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) Search(cfg *Config, baseDN string, filters map[*Field][]string) ([]*Entry, error)
- func (c *Client) UpdateEntry(cfg *Config, baseDN string, filters map[*Field][]string, ...) error
- func (c *Client) UpdatePassword(cfg *Config, baseDN string, filters map[*Field][]string, newPassword string) error
- type Config
- type Entry
- type Field
Constants ¶
This section is empty.
Variables ¶
View Source
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 ¶
This section is empty.
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, filters map[*Field][]string, newPassword 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.
type Config ¶
type Config struct {
*ldaputil.ConfigEntry
LastBindPassword string `json:"last_bind_password"`
LastBindPasswordRotation time.Time `json:"last_bind_password_rotation"`
}
Click to show internal directories.
Click to hide internal directories.