Skip to content

Moosemorals/fp-checkpassword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dovecot checkpassword implementaion

For the protocol, see [https://wiki2.dovecot.org/AuthDatabase/CheckPassword]

Expects two inputs on fd 3, a username and password.

Connects to a socket on localhost and echos the inputs, plus an IP address we find in the environment.

Expect back (on the socket) either "fail\n" or "success\n".

On fail, exit with code 1.

On success, read "KEY=VALUE\n" lines from the socket, write them into the environment, and then run the file found on our command line.

Any sign of trouble, exit with code 111.

About

Implementation of Dovecot's CheckPassword

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published