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 <[email protected]>: > 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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

