ldap

package
v0.0.0-...-0a38b43 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectAndReadUser

func ConnectAndReadUser(ldapConfig Config, credentials homeassistant.UsernameAndPassword) (*ldapClient.Entry, error)

Types

type BindConfig

type BindConfig struct {
	BindUser string
	Password string
}

type Cli

type Cli struct {
	Flags      *flag.FlagSet
	LdapConfig Config
}

func NewConfigCli

func NewConfigCli() *Cli

func (*Cli) Validate

func (config *Cli) Validate() error

type Config

type Config struct {
	Uri             string
	UseStartTLS     bool
	UseBind         bool
	Bind            BindConfig
	BaseDN          string
	UserFilter      string
	DisplayNameAttr string
}

Jump to

Keyboard shortcuts

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