Documentation ¶
Index ¶
- func NewChainHandler(log log.Logger, bh handler.Handler, fh handler.Handler) handler.Handler
- func NewOCISHandler(opts ...Option) handler.Handler
- type LdapSvc
- type Option
- func AccountsService(val accounts.AccountsService) Option
- func Backend(val *config.Config) Option
- func BaseDN(val string) Option
- func Context(val context.Context) Option
- func Fallback(val *config.Config) Option
- func GroupFormat(val string) Option
- func GroupsService(val accounts.GroupsService) Option
- func LDAP(val *config.LDAP) Option
- func LDAPS(val *config.LDAPS) Option
- func Logger(val log.Logger) Option
- func NameFormat(val string) Option
- func RoleBundleUUID(val string) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChainHandler ¶
NewChainHandler implements a chain backend with two backends
func NewOCISHandler ¶
NewOCISHandler implements a glauth backend with ocis-accounts as the datasource
Types ¶
type LdapSvc ¶
type LdapSvc struct {
// contains filtered or unexported fields
}
LdapSvc holds the ldap server struct
func Server ¶
Server initializes the ldap server. It is a fork github.com/glauth/pkg/server because it would introduce a go-micro dependency upstream.
func (*LdapSvc) ListenAndServe ¶
ListenAndServe listens on the TCP network address s.c.LDAP.Listen
func (*LdapSvc) ListenAndServeTLS ¶
ListenAndServeTLS listens on the TCP network address s.c.LDAPS.Listen
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 GroupFormat ¶
GroupFormat provides a strring to set the GroupFormat option.
func GroupsService ¶
func GroupsService(val accounts.GroupsService) Option
GroupsService provides an GroupsService client to set the GroupsService option.
func NameFormat ¶
NameFormat provides a strring to set the NameFormat option.
func RoleBundleUUID ¶
RoleBundleUUID provides a role bundle UUID to make internal grpc requests.
type Options ¶
type Options struct { Logger log.Logger Context context.Context LDAP *config.LDAP LDAPS *config.LDAPS Backend *config.Config Fallback *config.Config BaseDN string NameFormat string GroupFormat string RoleBundleUUID string AccountsService accounts.AccountsService GroupsService accounts.GroupsService }
Options defines the available options for this package.