1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

dovecot: Dovecot authentication package

This patch adds a new package which implements two basic primitives for
authenticating against dovecot ("user exists", and "check password").

It is still experimental/work in progress.
This commit is contained in:
Alberto Bertogli
2017-12-09 21:35:27 +00:00
parent d4992ef8c5
commit 51e7c5c19e
13 changed files with 557 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import (
"testing"
"time"
"blitiri.com.ar/go/chasquid/internal/dovecot"
"blitiri.com.ar/go/chasquid/internal/userdb"
)
@@ -119,6 +120,7 @@ func check(t *testing.T, a *Authenticator, user, domain, passwd string, expect b
func TestInterfaces(t *testing.T) {
var _ NoErrorBackend = userdb.New("/dev/null")
var _ Backend = dovecot.NewAuth("/dev/null", "/dev/null")
}
// Backend implementation for testing.