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
At Tuesday, 12-08-2014 on 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 > > JonThe simple answer may be to quote the password. -bernhard
At Tue, 12 Aug 2014 11:23:06 +0100, Jon Hulatt wrote:> 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 mismatchYou must escape shell's meta characters, e.g., "{", "}", "$" and so on. # doveadm pw -t '{SHA512-CRYPT}$6$aUgGXP0UshkMj7hY$9JV4yMRsjIe/98CzmglYrMjf.9NJ.FXzxcLE9B0v3doCRUWo2wRncc6hg6VCs0DCUHQbeC/bRDZdGCge/nB/h/' -p password {SHA512-CRYPT}$6$aUgGXP0UshkMj7hY$9JV4yMRsjIe/98CzmglYrMjf.9NJ.FXzxcLE9B0v3doCRUWo2wRncc6hg6VCs0DCUHQbeC/bRDZdGCge/nB/h/ (verified) -- -- Name: SATOH Fumiyasu @ OSS Technology Corp. (fumiyas @ osstech co jp) -- Business Home: http://www.OSSTech.co.jp/ -- GitHub Home: https://GitHub.com/fumiyas/ -- PGP Fingerprint: BBE1 A1C9 525A 292E 6729 CDEC ADC2 9DCA 5E1C CBCA
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