[Dovecot] [PATCH] Allow verification of user's hash in doveadm-pw

Timo Sirainen tss at iki.fi
Sun Feb 12 02:24:38 EET 2012


On 09/01/2011 01:17 AM, Spack wrote:
> Hi,
>
> It may be useful for testing purpose to know if a generated password
> hash correspond to a given clear password. This can be useful to check
> if a hash generated by another program can be verified by Dovecot
> without any errors.
>
> This patch adds the ability the verify a password hash using `doveadm
> pw` via the `-V` option.

Committed, with a few changes:
http://hg.dovecot.org/dovecot-2.1/rev/fffa4d53e901

> +	while ((ch = getopt(argc, argv, "lp:r:s:u:V::")) != -1) {

"::" isn't standard, so I added a separate -t parameter to give the hash.


More information about the dovecot mailing list