backend

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemory

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

InMemory is a authentication backend that uses a user password map it does not use groups

func NewInMemory

func NewInMemory(data map[string]string) *InMemory

NewInMemory creates a new in memory backen a memoryBackend uses user, password from a map and ignores groups

func (InMemory) Authenticate

func (m InMemory) Authenticate(user string, password string, _ []string) (bool, error)

Authenticate does the authentication

type Ldap added in v0.2.0

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

Ldap is a backend to do LDAP authentication

func NewLdap added in v0.2.0

func NewLdap(server string, port int, baseDN string, domainName string) *Ldap

NewLdap returns a new ldap backend based on go-ad-auth/v3

func (Ldap) Authenticate added in v0.2.0

func (l Ldap) Authenticate(upn string, password string, authGroups []string) (bool, error)

Authenticate does the authentication

Jump to

Keyboard shortcuts

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