ldap

package
v0.0.0-...-a14a4d2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Ctl Global instance of the LDAP controller
	Ctl = NewController()
)

Functions

This section is empty.

Types

type Controller

type Controller interface {
	// Ping test the ldap config
	Ping(ctx context.Context, cfg models.LdapConf) (bool, error)
	// SearchUser search ldap user with name
	SearchUser(ctx context.Context, username string) ([]model.User, error)
	// ImportUser import ldap users to harbor
	ImportUser(ctx context.Context, importUsers []string) ([]model.FailedImportUser, error)
	// SearchGroup search ldap group by name or by dn
	SearchGroup(ctx context.Context, groupName, groupDN string) ([]model.Group, error)
	// Create ldap session with system config
	Session(ctx context.Context) (*ldap.Session, error)
}

Controller define the operations related to LDAP

func NewController

func NewController() Controller

NewController ...

Jump to

Keyboard shortcuts

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