New reply attribute

Arran Cudbard-Bell a.cudbardb at freeradius.org
Wed Nov 5 00:42:54 CET 2014


> On 4 Nov 2014, at 18:19, rovell74 at libero.it wrote:
> 
>  Hi
> 
> I'm using freeradius 2.1.10 and i need to add a custom attribute to freeradius reply. 
> 
> I've followed this step:
> 
>     - add to /etc/freeradius/dictionary the line
> 
>         ATTRIBUTE    My-Local-Attribute     3003   string
> 
>     - add  to the mysql RADREPLY the line
> 
>         insert into (user,attribute,op,value) values ('testing','My-Local-Attribute',':=','TEST')
> 
> 
> When i autenticate the user 'testing' i don't see the My-Local-Attribute in the response.
> 
> Is there something that i'm missing in the configuration?

You've created an internal attribute.

RADIUS has an 8bit attribute field, use a number that would fit in there, or better yet, create a local vendor dictionary and add your custom attributes there.

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2



More information about the Freeradius-Users mailing list