Problem with 3Com-User-Access-Level and rlm_perl
Krzysztof Olędzki
krzysztof.oledzki at axelspringer.pl
Sat Nov 25 00:34:20 CET 2006
Hello,
It seems there is something wrong with RAD_REPLY handling. With
3Com-User-Access-Level set to 3Com-Manager/3Com-Monitor freeradius
finally sends 3Com-Administrator:
My code looks like thos:
$RAD_CHECK{'Auth-Type'} = 'Accept';
$RAD_REPLY{'3Com-User-Access-Level'} = '3Com-Manager';
# radiusd -X
(...)
rlm_perl: Added pair 3Com-User-Access-Level = 3Com-Manager
rlm_perl: Added pair Auth-Type = Accept
(...)
Sending Access-Accept of id 68 to 192.168.139.254 port 2048
3Com-User-Access-Level = 3Com-Administrator
(...)
But if I set it to 2:
$RAD_REPLY{'3Com-User-Access-Level'} = 2;
then:
# radiusd -X
(...)
rlm_perl: Added pair 3Com-User-Access-Level = 2
rlm_perl: Added pair Auth-Type = Accept
(...)
Sending Access-Accept of id 69 to 192.168.139.254 port 2048
3Com-User-Access-Level = 3Com-Manager
BTW, there is no problem with other attributes like for example:
$RAD_REPLY{'Tunnel-Medium-Type'} = 'IEEE-802';
Tested with freeradius-1.1.2 and 1.1.3.
Best regards,
Krzysztof Olędzki
More information about the Freeradius-Users
mailing list