ldaputil

package
v2.8.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateUser

func AuthenticateUser(cfg Config, username, password string) (bool, error)

AuthenticateUser searches user by cfg.UserAttr and attempts to bind with provided password.

func FetchVlessFlags

func FetchVlessFlags(cfg Config) (map[string]bool, error)

FetchVlessFlags returns map[email]enabled

Types

type Config

type Config struct {
	Host       string
	Port       int
	UseTLS     bool
	BindDN     string
	Password   string
	BaseDN     string
	UserFilter string
	UserAttr   string
	FlagField  string
	TruthyVals []string
	Invert     bool
}

Jump to

Keyboard shortcuts

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