[sork] Password field format and value in MySQL

Eric Jon Rostetter eric.rostetter at physics.utexas.edu
Mon Oct 26 19:18:46 UTC 2009


Quoting Bruno Costacurta <techie at costacurta.org>:

> For Dovecot authentication, the fields password contain the  
> encryption, so values are ie:
>
> '{PLAIN}mypassword'
> '{MD5}$1$D4CKVAeL...etc...'

You mean there are mixed encryption methods in the database?

> This work fine for Dovecot but it seems not for Sork.

AFAIK, sork will not support mixed encryption.  All passwords would have
to be in the same format.

> As Dovecot and Sork share the same table, how does Sork knows which  
> encryption / decrypion to be use ?

It is configured in backends.php.  If you have a single encryption, you
can configure it there.  If you have mixed encryptions, you would need
to modify sork to auto-detect the password based on the prefix, and handle
it accordingly.

> Bye,
> Bruno

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

This message is provided "AS IS" without warranty of any kind,
either expressed or implied.  Use this message at your own risk.


More information about the sork mailing list