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

Adrian Stel adisan82 at gmail.com
Mon Nov 14 09:10:46 EST 2011


Hi,


thanks :)

phpass has many method I use hash_base64, RTSiteConfig.pm:

'p_enc_pkg'                 =>  'Authen::Passphrase::PHPass',
'p_enc_sub'                 =>  'hash_base64',


and when i put user/pass I get:

RT Site:
http://150.254.148.60/NoAuth/Login.html

Can't use string ("*****") as a HASH ref while "strict refs" in use at
/usr/local/share/perl/5.10.1/Authen/Passphrase/PHPass.pm line 278.

But when I reload page I will be login to RT.

Any idea why we get this error.

I test 2 more method hash and cost i both case we get the same error.

I'm not sure if I chose rigt method.

Or there is issues in RTSiteConfig.pm



Best
Adrian


2011/11/14 Zordrak <zordrak at tpa.me.uk>:
> Adrian Stel wrote:
>> Hi,
>> When I use:
>>
>> 'p_enc_pkg'                 =>  'Authen::Passphrase::PHPass',
>> 'p_enc_sub'                 =>  '',
>>
>>
>> I get:
>>
>> My_MySQL AUTH FAILED The encryption package you gave me (
>> Authen::Passphrase::PHPass ) does not support the encryption method
>> you specified (  )
>> (/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/DBI.pm:99)
>>
>> Any idea why ?
>
> Very simple, you haven't specified a method (subroutine) for the
> encryption; only the package.
>
> Take MySQL's password function as an example. To use it you would
> specific the p_enc_pkg as Crypt::MySQL which will "include" that perl
> module, but that module provides many different methods. Normally you'd
> expect to use "password41" as the p_enc_sub.
>
> If it were MD5:
>
> p_eng_pkg: Digest::MD5
> p_enc_sub: md5_hex
> --
> Zordrak
> zordrak at tpa.me.uk
>



-- 
Pozdrawiam
Adrian Stelmaszyk



More information about the rt-users mailing list