Re: \000 in "octets" attribute?



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@restena.lu     Tel.:     +352 424409-1
http://www.restena.lu                Fax:      +352 422473

Attachment: pgpQ1OoSwp0Lw.pgp
Description: PGP signature



This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.