ldapclient

package
v0.0.0-...-8505860 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionOptions

type ConnectionOptions struct {
	Host        string
	Insecure    bool
	BaseDN      string
	UserFilter  string
	GroupFilter string
	IDField     string
}

type Credentials

type Credentials struct {
	User     string
	Password string
}

type Entry

type Entry struct {
	DN         string
	Attributes map[string][]string
}

type LDAPClient

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

func NewLDAPClient

func NewLDAPClient(credentials *Credentials, conOptions *ConnectionOptions, logger *zerolog.Logger) (*LDAPClient, error)

func (*LDAPClient) Close

func (l *LDAPClient) Close()

func (*LDAPClient) ListGroups

func (l *LDAPClient) ListGroups() []*ldap.Entry

func (*LDAPClient) ListUsers

func (l *LDAPClient) ListUsers() []*ldap.Entry

Jump to

Keyboard shortcuts

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