Cached attributes

Stefan Paetow Stefan.Paetow at jisc.ac.uk
Wed Feb 24 15:36:21 CET 2016


>> update outer.session-state {
>> 		User-Name = &User-Name
>> 		}
> 
> The outer User-Name should at this point be anonymous at bris.ac.uk so I would expect this update operation to make a change and set &outer.session-state:User-Name to iser-linauth etc.

No. It wouldn't. Because the User-Name is already set, the '=' operation does nothing. Using ':=' instead will overwrite the existing value in the session-state.

But, like Alan D says, it's probably best to use your own internal variable (such as Inner-User-Name as per his suggestion) to store the username independently of the session-state one set from the outer session. :-)

> We don't want to cache the VLAN number itself, i.e. don't want to make the VLAN decision in the inner post-auth but we do want to cache the inner User-Name so it can be easily accessed later to do the VLAN calculation on resumed sessions.

Which is fair enough.

Stefan Paetow
Moonshot Industry & Research Liaison Coordinator

t: +44 (0)1235 822 125
gpg: 0x3FCE5142
xmpp: stefanp at jabber.dev.ja.net
skype: stefan.paetow.janet

jisc.ac.uk

Networkshop44, University of Manchester. Save the date: 22-24 March, 2016. #NWS44

Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.

Jisc Collections and Janet Ltd. is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under Company No. number 2881024, VAT No. GB 197 0632 86. The registered office is: Lumen House, Library Avenue, Harwell, Didcot, Oxfordshire, OX11 0SG. T 01235 822200.

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


More information about the Freeradius-Users mailing list