ad

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 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 Auth

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

Auth represents an Active Directory authentication mechanism

func New

func New(config *adauth.Config, groups []string) *Auth

New returns a new *Auth with the given configuration and permissions mapping

func (*Auth) Authenticate

func (a *Auth) Authenticate(username, password string) (user *auth.User, err error)

Authenticate authenticates the given credentials and returns the User associated with the account if successful, or nil if not. If an error occurs it is returned.

Jump to

Keyboard shortcuts

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