mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-19 14:57:04 +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:
16
cmd/dovecot-auth-cli/test_exists_notfound.cmy
Normal file
16
cmd/dovecot-auth-cli/test_exists_notfound.cmy
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
userdb unix_listen .dovecot-userdb
|
||||
|
||||
c = ./dovecot-auth-cli .dovecot exists username
|
||||
|
||||
userdb -> VERSION 1 1
|
||||
userdb -> SPID 12345
|
||||
|
||||
userdb <- VERSION 1 1
|
||||
userdb <- USER 1 username service=smtp
|
||||
|
||||
userdb -> NOTFOUND 1
|
||||
|
||||
c wait 1
|
||||
|
||||
c <- no: <nil>
|
||||
Reference in New Issue
Block a user