Problem with rlm_perl

Alan DeKok aland at deployingradius.com
Fri Sep 3 15:50:11 CEST 2010


Nasser Heidari wrote:
> I wanted to capture users mac address, so I've added a perl module , and
> after parsing cisco-av-pair attribute , I save it to DB.
> In normal situation everything works like a charm , but in some cases,
> If NAS doesn't send mac-address attribute, I expect to save a
> 0000.0000.0000 mac address in DB , but no success.
> There is a condition that I check if mac-address attribute exists in
> request or not, if exist it's ok , if not it should update request with
> a 0000.0000.0000 mac address.

  This can be done in the Perl script.  Just check if the attribute
exists in the request hash.

  Alan DeKok.



More information about the Freeradius-Users mailing list