ldap

package
v0.0.0-...-71ad85e Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	URL                string
	BindDN             string
	BindCredential     string
	InsecureSkipVerify bool
	UsernameAttribute  string
	UserGroup          *Settings_Group
	AdminGroup         *Settings_Group
}

func New

func New(settigns *Settings) (*Settings, error)

func (*Settings) Authenticate

func (s *Settings) Authenticate(userName, password string) (group string, succecfulLogin bool, err error)

func (*Settings) NewSession

func (s *Settings) NewSession() (l *ldap.Conn, err error)

type Settings_Group

type Settings_Group struct {
	UsersDN string
}

Jump to

Keyboard shortcuts

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