How to return AV pairs from within an rlm module?
Hi all I want to return AV pairs (Cisco VoIP) from within an rlm module. I tried to printf them into stdout, but it didn't work. Should I use the structures accessible within the rlm module? for example, REQUEST. Then, how should I pass them to Cisco? Regards Ali
Add your attributes to the reply structure. FreeRADIUS will take care of the rest. josh. Ali Majdzadeh wrote:
Hi all I want to return AV pairs (Cisco VoIP) from within an rlm module. I tried to printf them into stdout, but it didn't work. Should I use the structures accessible within the rlm module? for example, REQUEST. Then, how should I pass them to Cisco?
Regards Ali
------------------------------------------------------------------------
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi Josh Thanks a lot. I am going to give it a try. Best Regards Ali On 9/14/06, Josh Howlett <josh.howlett@bristol.ac.uk> wrote:
Add your attributes to the reply structure. FreeRADIUS will take care of the rest.
josh.
Ali Majdzadeh wrote:
Hi all I want to return AV pairs (Cisco VoIP) from within an rlm module. I tried to printf them into stdout, but it didn't work. Should I use the structures accessible within the rlm module? for example, REQUEST. Then, how should I pass them to Cisco?
Regards Ali
------------------------------------------------------------------------
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi Ali, it works from the exec program . Just by writing to the stdout in format "User-Name=steve".I have tried with vendor specfic attributes also it has worked. Rgds, Shankar ganesh -----Original Message----- From: freeradius-users-bounces+shankarganesh=tataelxsi.co.in@lists.freeradius.org [mailto:freeradius-users-bounces+shankarganesh=tataelxsi.co.in@lists.freerad ius.org]On Behalf Of Ali Majdzadeh Sent: Thursday, September 14, 2006 1:27 PM To: FreeRadius users mailing list Subject: How to return AV pairs from within an rlm module? Hi all I want to return AV pairs (Cisco VoIP) from within an rlm module. I tried to printf them into stdout, but it didn't work. Should I use the structures accessible within the rlm module? for example, REQUEST. Then, how should I pass them to Cisco? Regards Ali
participants (3)
-
Ali Majdzadeh -
Josh Howlett -
Shankar Ganesh C