On Thu, Nov 17, 2011 at 3:30 PM, Adrian Stel <[email protected]> wrote:
> Hi Ruslan,
>

[snip]

>
> In log I can see:
>
> p_check for My_MySQL failed: unrecognised crypt scheme $H$ at
> /opt/rt4/etc/RT_SiteConfig.pm line 154

Looks like it works.

> This is the line:
>
> 154   return Authen::Passphrase->from_crypt($hash || '*')->match($pass);
>
>
> I'm not sure if I put this p_check i right place, or I miss some '' ?

Everything in its right place. However, according to
http://www.openwall.com/phpass/ smart people in phpBB3 team changed
$P$ to $H$ without changing meaning, so you need to oversmart them.
Put the following line right before line 154 (return Authen...):

$hash =~ s/^\$H\$/$P$/;

That will replace $H$ in the beginning with $P$ and Authen::Passphrase
should find proper module.

-- 
Best regards, Ruslan.
--------
RT Training Sessions (http://bestpractical.com/services/training.html)
*  Barcelona, Spain  November 28 & 29, 2011

Reply via email to