Access-Accept does not "see" the attribute defined in the dictionary file

Vafa Andalibi vafandal at iu.edu
Wed Nov 21 16:49:24 CET 2018


Hello,

I've built the FR (master branch) on raspberry pi and I'm trying to run it
with a custom defined attribute in Access-Accept. I have added this
attribute at the end of */usr/local/etc/raddb/dictionary* as follows:


*ATTRIBUTE TEST-ATTRIBUTE-1.2.3    3011    string*

This is the only uncommented line in the dictionary file. Then in
*/usr/local/etc/raddb/sites-enabled/default* inside the *send
Access-Accept* block,
I have added a very simple code:


*send Access-Accept{*
*...*
*if (&session-state:TEST-ATTRIBUTE-1.2.3) {*
* update {*
* &Url-Data :="%{session-state:TEST-ATTRIBUTE-1.2.3}"*
* }*
* rest*
*}*
*...*
*}*


Then after running it with *sudo /usr/local/sbin/radiusd -X*, I'm getting
the following error:

*...*

*compiling - send Access-Accept {...}*
*/usr/local/etc/raddb/sites-enabled/default[1033]: Failed resolving
undefined attribute: Unknown protocol 'TEST-ATTRIBUTE-1'*
*/usr/local/etc/raddb/sites-enabled/default[1033]: Failed to parse "if"
subsection*
*/usr/local/etc/raddb/sites-enabled/default[988]: Failed compiling 'send
Access-Accept { ... }' section*
*/usr/local/etc/raddb/sites-enabled/default[80]: Could not load virtual
server "default".*


Could you please help me with this? what am I missing?


Thank you in advance,


More information about the Freeradius-Users mailing list