More sanity checks in v3

Arran Cudbard-Bell a.cudbardb at freeradius.org
Wed Apr 29 04:25:02 CEST 2015


> On 28 Apr 2015, at 12:45, Alan DeKok <aland at deployingradius.com> wrote:
> 
> On Apr 28, 2015, at 12:40 PM, Matthew Newton <mcn4 at leicester.ac.uk> wrote:
>> I guess it's historical, but just wondering why unquoted strings
>> are permitted at all.
> 
>  Historical.
> 
>> Can they be removed in 3.1?
> 
>  Probably, yes.  Arran and I have had a number of discussions around this.
> 
>  Some unquoted strings should be allowed, where the context is clear.  e.g. the RHS of the following:
> 
> 	if (&NAS-Port-Id == 0)
> 
>  For the left side, using unquoted strings is almost always wrong.

You do type inference from the format of barewords, and leave strings as strings.

Integers are easy, but we might be able to do IPv4/IPv6 addresses/prefixes as well.

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

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

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


More information about the Freeradius-Users mailing list