auth

package
v0.0.0-...-c8fbfac Latest Latest
Warning

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

Go to latest
Published: May 14, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(username string, password string, c *conf.GlobalConfig, discovery *conf.DiscoveryLdap) (string, string, error)

func CheckLdapConn

func CheckLdapConn(c *conf.GlobalConfig, discovery *conf.DiscoveryLdap) error

func CheckOneLdapConn

func CheckOneLdapConn(l *conf.LdapConfig) error

func DirectBind

func DirectBind(username string, password string, l *conf.LdapConfig) (string, string, error)

func GetLdapClient

func GetLdapClient(l *conf.LdapConfig) (conn *ldap.Conn, err error)

func GetOneLdapConfig

func GetOneLdapConfig(c *conf.GlobalConfig) *conf.LdapConfig
func Search(username string, password string, l *conf.LdapConfig) (string, string, error)

Types

type LdapAuthError

type LdapAuthError struct {
	Err error
}

func (*LdapAuthError) Error

func (e *LdapAuthError) Error() string

func (*LdapAuthError) WrappedErrors

func (e *LdapAuthError) WrappedErrors() []error

type LdapOpError

type LdapOpError struct {
	Err error
}

func (*LdapOpError) Error

func (e *LdapOpError) Error() string

func (*LdapOpError) WrappedErrors

func (e *LdapOpError) WrappedErrors() []error

type NoLdapServer

type NoLdapServer struct{}

func (*NoLdapServer) Error

func (e *NoLdapServer) Error() string

Jump to

Keyboard shortcuts

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