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
| 47 | // It supports reporting of multiple authorization identities so multiple |
| 48 | // accounts can be associated with a single set of credentials. |
| 49 | type 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 | |
| 62 | func (s *SASLAuth) SASLMechanisms() []string { |
| 63 | var mechs []string |
nothing calls this directly
no outgoing calls
no test coverage detected