weiwei fang wrote:
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:
Why? Could you *please* try reading the documentation that comes with FreeRADIUS? I mean, go to http://freeradius.org, and click on either the "doc" link, or the "wiki" link. You will see a *lot* of documentation.
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
Type "sql" into the search box on the Wiki, and you'll get lots of documentation about the SQL module. Or... read the file doc/rlm_sql, which comes with the server.
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.
Mostly, yes.
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.
No.
I don't know it is right? Or otherwise I should write my db operation code in rlm_sql?
Why would you write any C code? It isn't necessary. Alan DeKok.