MCPcopy Create free account
hub / github.com/foxcpp/maddy / SASLAuth

Struct SASLAuth

internal/auth/sasl.go:49–60  ·  view source on GitHub ↗

SASLAuth is a wrapper that initializes sasl.Server using authenticators that call maddy module objects. It also handles username translation using auth_map and auth_map_normalize (AuthMap and AuthMapNormalize should be set). It supports reporting of multiple authorization identities so multiple ac

Source from the content-addressed store, hash-verified

47// It supports reporting of multiple authorization identities so multiple
48// accounts can be associated with a single set of credentials.
49type SASLAuth struct {
50 Log *log.Logger
51 OnlyFirstID bool
52 EnableLogin bool
53
54 AuthMap module.Table
55 AuthNormalize authz.NormalizeFunc
56
57 ErrorMap func(err error) error
58
59 Plain []module.PlainAuth
60}
61
62func (s *SASLAuth) SASLMechanisms() []string {
63 var mechs []string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected