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

Vafa Andalibi vafandal at iu.edu
Wed Nov 21 17:04:01 CET 2018


Hi Alan,

Sorry for the bad formatting. The code that I'm working on and I'm trying
to run was previously developed on v3.1.x  branch which apparently doesn't
exists anymore. So I assumed the closest thing to that is the master now.
The reason they used v.3.1.x instead of v3.0.x is mentioned in the comments
to be "At the time of this writing, the FreeRadius 3.0.x versions have a
problem with REST" and there is no further information about what was that
problem. I'll try to move back to v3.0.x now.

Thank you for your help,

On Wed, Nov 21, 2018 at 10:55 AM Alan DeKok <aland at deployingradius.com>
wrote:

> On Nov 21, 2018, at 10:49 AM, Vafa Andalibi <vafandal at iu.edu> wrote:
> >
> > I've built the FR (master branch)
>
>   Please don't use the "master" branch unless you are VERY familiar with
> RADIUS.  v4 is in heavy development, and may not even work from day to day.
>
>   Why are you using v4?
>
> > 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*
>
>   There's no need to add ** around everything.  Just paste the text.
>
>   And, why are you adding that attribute?  What is it for?
>
> > 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'*
>
>   Well, that seems simple enough.  The name is getting truncated.  Don't
> use "." in an attribute name.
>
>   Or, use v3.
>
>   Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list