New attribute on old freeradius server
Hello everyone, I'm trying to implement an new radreply attribute on an old freeradius 1.x production server that should be replaced on the next days. I've set a user attribute on my mysql database - table radreply like: Shape = 1 I've added that new attribute on my dictionary file /etc/freeradius/dictionary (ubuntu server) like: ..... ...... ATTRIBUTE Shape 86 integer I'm doing some radtests and I'm getting this: Thu Aug 2 14:43:49 2012 : Error: rlm_sql: Failed to create the pair: Unknown attribute "Shape" Thu Aug 2 14:43:49 2012 : Error: rlm_sql (sql): Error getting data from database Thu Aug 2 14:43:49 2012 : Auth: Login OK: [user] (from client pppoe02 port 0) Where else should I look for? Kindly regards, Tiago
Tiago wrote:
I'm trying to implement an new radreply attribute on an old freeradius 1.x production server that should be replaced on the next days.
I've set a user attribute on my mysql database - table radreply like: Shape = 1
I've added that new attribute on my dictionary file /etc/freeradius/dictionary (ubuntu server) like:
..... ...... ATTRIBUTE Shape 86 integer
No. Attribute 86 is already defined. Don't use it. Use 3000 instead. This is documented in newer versions of the server.
I'm doing some radtests and I'm getting this:
Thu Aug 2 14:43:49 2012 : Error: rlm_sql: Failed to create the pair: Unknown attribute "Shape" Thu Aug 2 14:43:49 2012 : Error: rlm_sql (sql): Error getting data from database Thu Aug 2 14:43:49 2012 : Auth: Login OK: [user] (from client pppoe02 port 0)
Where else should I look for?
Well... the server isn't reading the dictionary file you edited. Alan DeKok.
Hello, Since my last message, I've created a new attribute on a old freeradius server (ver 1.x) and it worked perfectly. Now I've migrated to freeradius 2.x and I need to put the same old attributes on production. However, per Alan instructions I should use attr 3000,... and reading the dictionary file it says: # If you want to add entries to the dictionary file, # which are NOT going to be placed in a RADIUS packet, # add them here. The numbers you pick should be between # 3000 and 4000. I think its not my case, because I'll need to get these attributes on my NAS (rp-pppoe server) and with it set Down/Up rates to my customer. Am I right? If yes, so which number should I use? By the way, I'm setting the same attr on freeradius and NAS server. Thanks in advance. 2012/8/2 Alan DeKok <aland@deployingradius.com>:
Tiago wrote:
I'm trying to implement an new radreply attribute on an old freeradius 1.x production server that should be replaced on the next days.
I've set a user attribute on my mysql database - table radreply like: Shape = 1
I've added that new attribute on my dictionary file /etc/freeradius/dictionary (ubuntu server) like:
..... ...... ATTRIBUTE Shape 86 integer
No. Attribute 86 is already defined. Don't use it.
Use 3000 instead. This is documented in newer versions of the server.
I'm doing some radtests and I'm getting this:
Thu Aug 2 14:43:49 2012 : Error: rlm_sql: Failed to create the pair: Unknown attribute "Shape" Thu Aug 2 14:43:49 2012 : Error: rlm_sql (sql): Error getting data from database Thu Aug 2 14:43:49 2012 : Auth: Login OK: [user] (from client pppoe02 port 0)
Where else should I look for?
Well... the server isn't reading the dictionary file you edited.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Tiago wrote:
I think its not my case, because I'll need to get these attributes on my NAS (rp-pppoe server) and with it set Down/Up rates to my customer. Am I right? If yes, so which number should I use?
You use the numbers as defined in the dictionary on the NAS. If it has a Up/Down rate attribute, use that.
By the way, I'm setting the same attr on freeradius and NAS server.
You should create a vendor-specific dictionary, and define the attribute there. Alan DeKok.
Thanks Alan, So basically the correct way would be create a vendor dict, and there can I use any number or I need to follow some guideline? 2012/10/20 Alan DeKok <aland@deployingradius.com>:
Tiago wrote:
I think its not my case, because I'll need to get these attributes on my NAS (rp-pppoe server) and with it set Down/Up rates to my customer. Am I right? If yes, so which number should I use?
You use the numbers as defined in the dictionary on the NAS. If it has a Up/Down rate attribute, use that.
By the way, I'm setting the same attr on freeradius and NAS server.
You should create a vendor-specific dictionary, and define the attribute there.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Alan DeKok -
Tiago