[Dovecot] Migrating password scheme

lst_hoe02 at kwsoft.de lst_hoe02 at kwsoft.de
Thu Mar 21 22:02:05 EET 2013


Zitat von Daryl Richards <daryl at isletech.net>:

> On 13-03-21 12:51 PM, lst_hoe02 at kwsoft.de wrote:
>> by the move to Dovecot we try to alter the password encryption  
>> stored in the database from MD5 to CRYPT-SHA256 along the Guide at  
>> http://wiki2.dovecot.org/HowTo/ConvertPasswordSchemes. It's mostly  
>> working but i still have not found out how to pass the cleartext  
>> password to the re-encrypting script. According to the HowTo it  
>> should be enough to add "'%w' AS userdb_plain_pass" to the passdb  
>> query, to get a environment variable $PLAIN_PASS in the post-login  
>> script to pass along.
>> This does not work eg. PLAIN_PASS is always empty. This is Dovecot  
>> 2.0.19 from Ubuntu 12.04 LTS.
> It seems to depends on how you are doing your userdb, not passdb..
>
> I use a static userdb, so I have:
>
> userdb {
>   args = uid=xx gid=xx home=/xx/xx/%d/%n plain_pass=%w
>   driver = static
> }
>
>
> -- 
> Daryl Richards
> Isle Technical Services Inc.

Will try that, thanks.

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6144 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20130321/6a15cdf8/attachment-0001.bin>


More information about the dovecot mailing list