glauth

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOCISHandler

func NewOCISHandler(opts ...Option) handler.Handler

NewOCISHandler implements a glauth backend with ocis-accounts as tdhe datasource

Types

type LdapSvc

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

LdapSvc holds the ldap server struct

func Server

func Server(opts ...Option) (*LdapSvc, error)

Server initializes the debug service and server.

func (*LdapSvc) ListenAndServe

func (s *LdapSvc) ListenAndServe() error

ListenAndServe listens on the TCP network address s.c.LDAP.Listen

func (*LdapSvc) ListenAndServeTLS

func (s *LdapSvc) ListenAndServeTLS() error

ListenAndServeTLS listens on the TCP network address s.c.LDAPS.Listen

func (*LdapSvc) Shutdown

func (s *LdapSvc) Shutdown()

Shutdown ends listeners by sending true to the ldap serves quit channel

type Option

type Option func(o *Options)

Option defines a single option function.

func AccountsService

func AccountsService(val accounts.AccountsService) Option

AccountsService provides an AccountsService client to set the AccountsService option.

func Config

func Config(val *config.Config) Option

Config provides a function to set the config option.

func Context

func Context(val context.Context) Option

Context provides a function to set the context option.

func GroupsService

func GroupsService(val accounts.GroupsService) Option

GroupsService provides an GroupsService client to set the GroupsService option.

func Logger

func Logger(val log.Logger) Option

Logger provides a function to set the logger option.

type Options

type Options struct {
	Logger          log.Logger
	Context         context.Context
	Config          *config.Config
	AccountsService accounts.AccountsService
	GroupsService   accounts.GroupsService
}

Options defines the available options for this package.

Jump to

Keyboard shortcuts

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