Version: v1.0.48 Latest Latest

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 11 Imported by: 0




This section is empty.


This section is empty.


func EscapeFilterValue added in v1.0.25

func EscapeFilterValue(filter string) string

func MapTLSVersion added in v1.0.48

func MapTLSVersion(version string) (uint16, error)

func ParseUserCN added in v1.0.37

func ParseUserCN(userDN string) (string, string, error)

func UnescapeFilterValue added in v1.0.8

func UnescapeFilterValue(filter string) string


type Connection added in v1.0.8

type Connection interface {
	Search(*l.SearchRequest) (*l.SearchResult, error)
	IsClosing() bool

type Manager

type Manager struct {
	Config     *config.LdapConfig
	Connection Connection
	// contains filtered or unexported fields

Manager -

func NewManager added in v0.0.29

func NewManager(ldapConfig *config.LdapConfig) (*Manager, error)

func (*Manager) Close added in v1.0.8

func (m *Manager) Close()

func (*Manager) GetUserByDN added in v1.0.8

func (m *Manager) GetUserByDN(userDN string) (*User, error)

func (*Manager) GetUserByID added in v1.0.8

func (m *Manager) GetUserByID(userID string) (*User, error)

func (*Manager) GetUserDNs added in v1.0.8

func (m *Manager) GetUserDNs(groupName string) ([]string, error)

func (*Manager) GroupFilter added in v1.0.20

func (m *Manager) GroupFilter(userDN string) (string, error)

func (*Manager) IsGroup added in v1.0.20

func (m *Manager) IsGroup(DN string) (bool, string, error)

type RefreshableConnection added in v1.0.46

type RefreshableConnection struct {
	// contains filtered or unexported fields

func NewRefreshableConnection added in v1.0.46

func NewRefreshableConnection(createConnection func() (Connection, error)) (*RefreshableConnection, error)

NewRefreshableConnection creates a connection that will use the function `createConnection` to refresh the connection if it has been closed.

func (*RefreshableConnection) RefreshConnection added in v1.0.46

func (r *RefreshableConnection) RefreshConnection() error

func (*RefreshableConnection) Search added in v1.0.46

func (r *RefreshableConnection) Search(searchRequest *l.SearchRequest) (*l.SearchResult, error)

type User

type User struct {
	UserDN string
	UserID string
	Email  string

User -


Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL