where to insert my code to return custom reply to the client
weiwei fang
fangvv at gmail.com
Mon May 24 03:55:19 CEST 2010
Hi, all!
I am now using a WiMAX network and I want to use freeradius+mysql (and EAP,
TLS) for it. Now I need to add some new attribute (such as the service level
for a single client) in the mysql database. And then the freeradius server
can return the attribute to tell the AGW.
I have looked up some methods on the Internet and I found these pages:
http://ubuntuforums.org/showthread.php?t=151781
http://www.frontios.com/freeradius.html
>From the above two links, I have a basic idea. I think I can create a new
table in the databse to store the new attribute like this:
user1 attribute-value-user1
user1 attribute-value-user2
....
Then as stated in http://www.frontios.com/freeradius.html, the rlm_sql is
responsible for return some pre-defined attributes to the AGW and SS. Then I
write some code in rlm_wimax.c to query the database for the new defined
attribute and return it to the AGW to let it know.
I don't know it is right? Or otherwise I should write my db operation code
in rlm_sql?
Thanks a lot for your kindly help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100524/ff3901ec/attachment.html>
More information about the Freeradius-Users
mailing list