Help us shape the future of Go! Take the 2026 Go Developer Survey

ldaps

package
v1.21.10 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 13 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(_ context.Context) []rorhealth.Check

TODO: Implement

func (*LdapsClient) CheckHealthWithoutContext added in v1.7.0

func (l *LdapsClient) CheckHealthWithoutContext() []rorhealth.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