activedirectory

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: 15 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 AdClient

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

func NewAdClient

func NewAdClient(config AdConfig) (*AdClient, error)

func (*AdClient) CheckHealth added in v0.1.0

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

TODO: Implement

func (*AdClient) Connect

func (l *AdClient) Connect() error

func (*AdClient) GetUser

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

type AdConfig

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

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

type AdServer

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

Jump to

Keyboard shortcuts

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