ldap

package
v0.0.0-...-baf35ca Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

func NewAuth

func NewAuth(cfg Config, logger zerolog.Logger) (*Auth, error)

func (*Auth) SupportsPasswordUpdate

func (a *Auth) SupportsPasswordUpdate() bool

func (*Auth) UpdateUserPassword

func (a *Auth) UpdateUserPassword(db db.Handler, username, password string) error

func (*Auth) VerifyUserPassword

func (a *Auth) VerifyUserPassword(_ db.Handler, email, password string) (bool, error)

type Config

type Config struct {
	Debug          bool           `koanf:"debug"`
	URL            string         `koanf:"url"`
	StartTLS       bool           `koanf:"starttls"`
	ConnectTimeout string         `koanf:"connect_timeout"`
	RequestTimeout string         `koanf:"request_timeout"`
	DNTemplate     string         `koanf:"dn_template"`
	DNLookup       DNLookupConfig `koanf:"dn_lookup"`
}

type DNLookupConfig

type DNLookupConfig struct {
	BindDN         string `koanf:"bind_dn"`
	BindPassword   string `koanf:"bind_password"`
	BaseDN         string `koanf:"base_dn"`
	FilterTemplate string `koanf:"filter_template"`
}

Jump to

Keyboard shortcuts

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