ldaps

package
v0.0.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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
}

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) Connect

func (l *LdapsClient) Connect() error

func (*LdapsClient) GetUser

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

Jump to

Keyboard shortcuts

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