[rt-users] RT::Authen::ExternalAuth with PHPass (phpbb3);

Ruslan Zakirov ruz at bestpractical.com
Thu Nov 17 07:24:49 EST 2011


On Thu, Nov 17, 2011 at 3:30 PM, Adrian Stel <adisan82 at gmail.com> 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.



More information about the rt-users mailing list