ldapauth

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

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LDAPconf

type LDAPconf struct {
	LDAPAddr              string `envconfig:"LDAP_ADDR"`
	LDAPPort              int    `envconfig:"LDAP_PORT"`
	LDAPFirstBindUsername string `envconfig:"LDAP_FIRST_BIND_USERNAME"`
	LDAPFirstBindPassword string `envconfig:"LDAP_FIRST_BIND_PASSWORD"`
	BaseDN                string `envconfig:"BASEDN"`
}

type LdapAuthentication

type LdapAuthentication struct {
	LDAPConn *ldap.Conn
	// contains filtered or unexported fields
}

func New

func (*LdapAuthentication) Authenticate

func (l *LdapAuthentication) Authenticate(username string, password string) (interface{}, error)

func (*LdapAuthentication) Close

func (l *LdapAuthentication) Close()

func (*LdapAuthentication) ConnectToServer

func (l *LdapAuthentication) ConnectToServer()

Jump to

Keyboard shortcuts

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