ldaps

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimeout = 10 * time.Second

Functions

This section is empty.

Types

type LdapConfig

type LdapConfig struct {
	Domain string `json:"domain"`

	BindUser     string       `json:"bindUser"`
	BindPassword string       `json:"bindPassword"`
	BaseDN       string       `json:"basedn"`
	Servers      []LdapServer `json:"servers"`
	Certificate  []byte       `json:"certificate,omitempty"` // This is the CA certificate
	// contains filtered or unexported fields
}

type LdapServer

type LdapServer struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

type LdapsClient

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

func NewLdapsClient

func NewLdapsClient(config LdapConfig) (*LdapsClient, error)

func (*LdapsClient) CheckHealth added in v0.1.0

func (l *LdapsClient) CheckHealth() []newhealth.Check

TODO: Implement

func (*LdapsClient) Connect

func (l *LdapsClient) Connect() error

func (*LdapsClient) GetUser

func (l *LdapsClient) GetUser(ctx context.Context, userId string) (*identitymodels.User, error)

Jump to

Keyboard shortcuts

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