Unlang - Adding attribute NAS-Port-Id where response = Access-Accept

Marcos Vinícius marcos.sousa.morais at gmail.com
Thu Nov 10 13:09:53 CET 2016


Hello Alan,

It's works fine for me

Thanks for your help =)

2016-11-09 18:30 GMT-02:00 <A.L.M.Buxey at lboro.ac.uk>:

> Hi,
>
> > I need to add attribute NAS-Port-Id and send this attribute with the same
> > value of attribute UserName. I need to do this, because my accel-ppp
> needs
> > attribute NAS-Port-Id to set the values of interfaces when client
> connect.
> >
> > I dont want to add this atrribute NAS-Port-Id in all users (mysql), i
> know
> > if i do this, the problem is solved. But my freeradius operate together
> my
> > ERP, and its terrible to contact the support and request this
> modification.
> >
> > I want to rewrite the Access-Accept adding NAS-Port-Id=UserName using
> > UNLANG.
>
> in recent server versions, something like int he post-auth section:
>
>
>         update reply {
>                 &NAS-Port-ID := &User-Name
>         }
>
>
>
> alan
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html


More information about the Freeradius-Users mailing list