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

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Wed Nov 9 21:30:57 CET 2016


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


More information about the Freeradius-Users mailing list