rlm_perl and PEAP/MSCHAPv2

Herwin Weststrate herwin at quarantainenet.nl
Mon Feb 8 13:39:17 CET 2016


On 08-02-16 13:16, Ryan De Kock wrote:
>         #debugging
>         &radiusd::radlog(1,"PERL USERNAME " . $RAD_REQUEST{'User-Name'});
>         &radiusd::radlog(1,"PERL USERNAME " .
> $RAD_REQUEST{'Cleartext-Password'});

That second line is pretty much useless, not only has this nothing to do
with a username, there won't be a Cleartext-Password in the request.

>         #trying to update the cleartext-password to the one the user enters.
>         $RAD_REQUEST{'Cleartext-Password'} = "test";
>         $RAD_REPLY{'Cleartext-Password'} = 'test';

You have to write it to the control list instead of request/reply. Try
the following:

  $RAD_CHECK{'Cleartext-Password'} = 'test';

(The actual name of the perl hash required here varies among versions,
this is the hash that should work in v3.0.11)

-- 
Herwin Weststrate


More information about the Freeradius-Users mailing list