[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: X-auth attribute formats?
At 22:02 30.12.00 , Ari Huttunen wrote:
>Is it the understanding that XAUTH-USER-NAME, XAUTH-USER-PASSWORD, etc.
>attributes MUST be null-terminated? XAUTH-CHALLENGE would *NOT* be
>NULL terminated?
>
>Similarly, MUST User-Name and User-Password be NULL terminated when
>sent to/from a RADIUS server?
A summary of the Attribute format in RADIUS is shown below. The fields are
transmitted from left to right.
0 1 2
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
| Type | Length | Value ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
For User name Attribute
Type .................... User Name Attrib Type (as per
defined in
Radius Rfc)
Length................... 1(Type)+1(Length)+variable string(value)
value....................... User name
So UserName and User-Password lengths can be determined from the field '
Length 'so there is no
need of null termination while sending to /receiving from the Radius
server.
>
>Ari
>
>--
>Ari Huttunen phone: +358 9 2520 0700
>Senior Software Engineer fax : +358 9 2520 5001
>
>F-Secure Corporation <http://www.f-secure.com/>http://www.F-Secure.com
>
>F-Secure products: Integrated Solutions for Enterprise Security
>