doveadm pw with SHA512-CRYPT won't roundtrip

Jiri Bourek bourek at thinline.cz
Tue Aug 12 10:40:36 UTC 2014


On 12.8.2014 12:23, Jon Hulatt wrote:
> Hi,
>
> Not sure if this is a PBKAC or not:-
>
> root at ds3:/usr/share/postfixadmin# doveadm pw -s SHA512-CRYPT -p password
> {SHA512-CRYPT}$6$aUgGXP0UshkMj7hY$9JV4yMRsjIe/98CzmglYrMjf.9NJ.FXzxcLE9B0v3doCRUWo2wRncc6hg6VCs0DCUHQbeC/bRDZdGCge/nB/h/
>
> root at ds3:/usr/share/postfixadmin# doveadm pw -t {SHA512-CRYPT}$6$aUgGXP0UshkMj7hY$9JV4yMRsjIe/98CzmglYrMjf.9NJ.FXzxcLE9B0v3doCRUWo2wRncc6hg6VCs0DCUHQbeC/bRDZdGCge/nB/h/ -p password
> doveadm(root): Fatal: reverse password verification check failed: Password mismatch
>
> root at ds3:/usr/share/postfixadmin# dovecot --version
> 2.2.9
>
>
> It works ok with other schemes that i’ve tried (e.g. SSHA-512).
>
> Is this a bug, or my mistake?
>
> thanks
>
> Jon
>

Tried quoting the hash in 'single quotes'? My guess is your shell is 
interpreting the $ character and trying to replace part of the hash with 
some (undefined) variable


More information about the dovecot mailing list