Adding attributes to Access-Reply

Arran Cudbard-Bell a.cudbardb at freeradius.org
Tue Aug 22 03:26:26 CEST 2017


> On 22 Aug 2017, at 02:08, matt.southward at gmail.com wrote:
> 
> Forgive me if this is an obvious thing...I've been looking at the
> documentation and it just isn't clicking for me.

> I need to send the
> Framed-IP-Address and the Service-Type attributes in the Access-Reply.

*Access-Accept

> In
> my post-auth section of my default file I've added update reply {
> Service-Type = "Framed-User" }.

OK

> How do I specify the Framed-IP-Address?
> This value will be returned from a SQL query, if there is no value default
> to 255.255.255.254.

update reply {
	Framed-IP-Address := "%{%{sql:<YOUR QUERY HERE>}:-255.255.255.254}"
}

-Arran

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20170822/ec1714cb/attachment.sig>


More information about the Freeradius-Users mailing list