\000 in "octets" attribute?

Bjørn Mork bjorn at mork.no
Thu Jun 15 14:25:16 CEST 2006


Erik Bolsø <erik at linpro.no> writes:
> On 2006-06-15 14:00, Bjørn Mork <bjorn at mork.no> wrote:
>
>> Seems to work here, as long as the attribute is of type "octets".
>> Calling-Station-Id is a FreeRADIUS "string", not to be confused with
>> a RFC2865 "string".  MS-CHAP-Challenge is a FreeRADIUS "octets" type.
>
> Actually, it's the response from the server that needs to be single-byte
> 0x00 - if the ldap attribute in question is 0. Do tell if you find out
> how :)

Seems to work as expected too.  Proxy-State is of "octets" type and
RFC2865 requires the server to return it unchanged, which it does:

bjorn at obelix:/usr/local/test$ bin/radclient -x localhost:1812 auth testing123 -f testfiles/3
Sending Access-Request of id 20 to 127.0.0.1 port 1812
        User-Name = "ppp1 at example.com"
        Password = "b"
        NAS-Port-Type = xDSL
        Calling-Station-Id = "blah"
        Proxy-State = 0x00
rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=20, length=23
        Proxy-State = 0x00


Bjørn




More information about the Freeradius-Users mailing list