\000 in "octets" attribute?

Stefan Winter stefan.winter at restena.lu
Thu Jun 15 07:50:39 CEST 2006


Hi,

> I'm having a curious problem with a vendor-specific single-byte
> "octets"-attribute and attr_rewrite.
>
> Essentially, I'm trying to rewrite an ascii "0" to a single-byte 0x00
> value. But after this rewrite rule, a zero-byte value is returned
> instead. Any way to get around this?
>
> With \001, \002, etc, all's well.
>
> (incidentally, this is freeradius version 1.0.1 in RHEL4)

the RADIUS RFC forbids attributes with a terminating \000. The server knows 
that, and will shorten the octet attribute by cutting off the \000 - leaving 
an empty string behind. If your NAS really requires a trailing \000: fix the 
NAS. It is not RFC-compliant then.

Greetings,

Stefan Winter

-- 
Stefan WINTER

Stiftung RESTENA - Réseau Téléinformatique de l'Education Nationale et de 
la Recherche
Ingenieur Forschung & Entwicklung

6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg
E-Mail: stefan.winter at restena.lu     Tel.:     +352 424409-1
http://www.restena.lu                Fax:      +352 422473
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20060615/1c35ea4d/attachment.pgp>


More information about the Freeradius-Users mailing list