1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-18 14:47:03 +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

@@ -0,0 +1,21 @@
client unix_listen .dovecot-client
c = ./dovecot-auth-cli .dovecot auth username password
client -> VERSION 1 1
client -> SPID 12345
client -> CUID 12345
client -> COOKIE lovelycookie
client -> MECH PLAIN
client -> MECH LOGIN
client -> DONE
client <- VERSION 1 1
client <~ CPID
client <- AUTH 1 PLAIN service=smtp secured no-penalty nologin resp=dXNlcm5hbWUAdXNlcm5hbWUAcGFzc3dvcmQ=
client -> OTHER
c <~ no: invalid response
c wait 1