rewrite attribute with perl module
Hi ALL i have attribute Session-Timeout with value 360000 at radreply database and want to modify the value when the radius return it when radius replies, i enabled perl module and enable it at post-auth at the perl sub post-auth i added ..... print attr $RAD_REPLY{'Session-Timeout'} = "5" ; ..... print attr ..... return RLM_MODULE_UPDATED but that not affect the return vlaue : Thu Mar 5 23:22:30 2009 : Debug: rlm_perl: RAD_REPLY: Cisco-AVPair = throttle=55 Thu Mar 5 23:22:30 2009 : Debug: rlm_perl: RAD_REPLY: Session-Timeout = 360000 Thu Mar 5 23:22:30 2009 : Debug: rlm_perl: RAD_REPLY: Framed-IP-Address = xxxxx Thu Mar 5 23:22:30 2009 : Debug: rlm_perl: RAD_REQUEST: SQL-User-Name = user ............... Thu Mar 5 23:22:30 2009 : Debug: rlm_perl: RAD_REPLY: Cisco-AVPair = throttle=55 Thu Mar 5 23:22:30 2009 : Debug: rlm_perl: RAD_REPLY: Session-Timeout = 5 Thu Mar 5 23:22:30 2009 : Debug: rlm_perl: RAD_REPLY: Framed-IP-Address = xxxxxx but radius sent back Sending Access-Accept of id 1 to 192.168.100.10:32830 Framed-IP-Address := xxxx Cisco-AVPair = "throttle=55" Session-Timeout = 360000 with value of 360000 not (5) and then i enabled the perl module on authorize and authentication section at radius.conf and put the same pervious code in the same subs (authorize and authentication ) at perl module , but i got the same result , value not changed and also the same result when change the return code to become RLM_MODULE_UPDATED any hint please ?!! , can i modify the value of reply attributes ? Thanks lot _________________________________________________________________ Windows Live™ Contacts: Organize your contact list. http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-c...
participants (2)
-
Asaad -
tnt@kalik.net