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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user