ldaputil

package
v0.0.0-...-1c77479 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultClient   *LdapClient
	ErrLdapAuthFail = errors.New("user does not exist or too many entries returned")
	ErrLdapUnInit   = errors.New("ldap is not initialized")
)

Functions

func Authenticate

func Authenticate(username, password string) error

func InitLdap

func InitLdap(c *LdapConfig)

Types

type LdapClient

type LdapClient struct {
	*LdapConfig
}

func (*LdapClient) Authenticate

func (c *LdapClient) Authenticate(username, password string) error

type LdapConfig

type LdapConfig struct {
	Url          string
	BindUsername string
	BindPassword string
	Scope        int
	BaseDN       string
	Filter       string
}

Jump to

Keyboard shortcuts

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