ldap

package
v0.0.0-...-57dd5ad Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DependencySet = wire.NewSet(
	wire.Struct(new(Store), "*"),
	wire.Struct(new(Provider), "*"),
)

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Store                        *Store
	Clock                        clock.Clock
	StandardAttributesNormalizer StandardAttributesNormalizer
}

func (*Provider) Create

func (p *Provider) Create(i *identity.LDAP) error

func (*Provider) Delete

func (p *Provider) Delete(i *identity.LDAP) error

func (*Provider) Get

func (p *Provider) Get(userID string, id string) (*identity.LDAP, error)

func (*Provider) GetByServerUserID

func (p *Provider) GetByServerUserID(serverName string, userIDAttributeName string, userIDAttributeValue []byte) (*identity.LDAP, error)

func (*Provider) GetMany

func (p *Provider) GetMany(ids []string) ([]*identity.LDAP, error)

func (*Provider) List

func (p *Provider) List(userID string) ([]*identity.LDAP, error)

func (*Provider) ListByClaim

func (p *Provider) ListByClaim(name string, value string) ([]*identity.LDAP, error)

func (*Provider) MakeSpecFromEntry

func (p *Provider) MakeSpecFromEntry(serverConfig *config.LDAPServerConfig, loginUserName string, entry *ldap.Entry) (*identity.Spec, error)

func (*Provider) New

func (p *Provider) New(
	userID string,
	serverName string,
	loginUserName *string,
	userIDAttributeName string,
	userIDAttributeValue []byte,
	claims map[string]interface{},
	rawEntryJSON map[string]interface{},
) *identity.LDAP

func (*Provider) Update

func (p *Provider) Update(i *identity.LDAP) error

func (*Provider) WithUpdate

func (p *Provider) WithUpdate(iden *identity.LDAP, loginUserName *string, claims map[string]interface{}, rawEntryJSON map[string]interface{}) *identity.LDAP

type StandardAttributesNormalizer

type StandardAttributesNormalizer interface {
	Normalize(stdattrs.T) error
}

type Store

type Store struct {
	SQLBuilder  *appdb.SQLBuilderApp
	SQLExecutor *appdb.SQLExecutor
}

func (*Store) Create

func (s *Store) Create(i *identity.LDAP) (err error)

func (*Store) Delete

func (s *Store) Delete(i *identity.LDAP) error

func (*Store) Get

func (s *Store) Get(userID string, id string) (*identity.LDAP, error)

func (*Store) GetByServerUserID

func (s *Store) GetByServerUserID(serverName string, userIDAttributeName string, userIDAttributeValue []byte) (*identity.LDAP, error)

func (*Store) GetMany

func (s *Store) GetMany(ids []string) ([]*identity.LDAP, error)

func (*Store) List

func (s *Store) List(userID string) ([]*identity.LDAP, error)

func (*Store) ListByClaim

func (s *Store) ListByClaim(name string, value string) ([]*identity.LDAP, error)

func (*Store) Update

func (s *Store) Update(i *identity.LDAP) error

Jump to

Keyboard shortcuts

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