Subject: | Insufficient checking of dictionary format |
I'm using the dictionary from FreeRADIUS, which has the line:
ATTRIBUTE User-Password 2 string encrypt=1
As per the man page, Authen::Radius expects the dictionary to be in Livingston radiusd format, and treats "encrypt=1" as a vendor. Consequently, when I call add_attributes specifying User-Password, I get these error messages:
Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.8.0/Authen/Radius.pm line 210.
Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.8.0/Authen/Radius.pm line 255.
Use of uninitialized value in pack at /usr/lib/perl5/site_perl/5.8.0/Authen/Radius.pm line 258.
RadiusPerl should handle the problem more gracefully. (Naturally I resolved the problem by removing the "encrypt=1" string.)