How to set attribute value as null means that " "

Arran Cudbard-Bell a.cudbardb at freeradius.org
Tue May 15 21:44:17 CEST 2012


On 15 May 2012, at 21:26, mimir wrote:

> Hello,
> 
> I want to add a custom attribute before replicate the accounting package
> with null value.
> I see that it is added successfully before replication, but when I check it
> on remote server, I can not see
> userid1 and userid2 attributes. Do you have any comment on this?
> 
> [replicate] Replicating packet to Realm SECONDARY2
> Sending Accounting-Request of id 235 to 127.0.0.6 port 2814
>        User-Name = "test"
>        Calling-Station-Id = "1678912345"
>        Framed-Protocol = PPP
>        Acct-Status-Type = Start
>        NAS-Port = 22
>        Acct-Session-Id = "6"
>        Service-Type = Framed-User
>        NAS-IP-Address = 135.243.90.19
>     *   userid1 = ""
>        userid2 = ""*

RFC says you can't.

RFC 2865:

      string    1-253 octets containing binary data (values 0 through
                255 decimal, inclusive).  Strings of length zero (0)
                MUST NOT be sent; omit the entire attribute instead.

-Arran




More information about the Freeradius-Users mailing list