ldap

package
v0.0.0-...-6083769 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserNotFound         = errors.New("user does not exist")
	ErrPasswordPolicyFailed = errors.New("password does not match the policy on server (password history, complexity)")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Username string `koanf:"username"`
	Password string `koanf:"password"`
	Address  string `koanf:"address"`
}

type Manager

type Manager struct {
	Config
	Logger *zap.Logger
}

func New

func New(cfg Config, logger *zap.Logger) (Manager, error)

func (Manager) ChangePassword

func (m Manager) ChangePassword(username string, password string) error

nolint: funlen, cyclop

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL