length of data greater than 253
Hi all, I would like to know what happens with attributes whitch are greater than 253 B. Whether they are still sent or truncated, or... Thank you! Cristian NOVAC
Cristian Novac wrote:
Hi all, I would like to know what happens with attributes whitch are greater than 253 B. Whether they are still sent or truncated, or...
The RADIUS protocol does not support attributes larger than 253 octets. FreeRADIUS will not let you use strings larger than 253 octets. It will either give you an error, or silently truncate the strings. Alan DeKok.
Alan DeKok wrote:
Cristian Novac wrote:
Hi all, I would like to know what happens with attributes whitch are greater than 253 B. Whether they are still sent or truncated, or...
The RADIUS protocol does not support attributes larger than 253 octets. FreeRADIUS will not let you use strings larger than 253 octets. It will either give you an error, or silently truncate the strings.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
Thank you for the explanations! What do you think? It could be possible to make radius deal with such situations(larger than 253 octets attributes)? If you think it is, I would like to give it a try. In case it is possible, may you tell me please what part of the source code should I give attention in order to solve this. Thank you!
Previously Cristian Novac wrote:
What do you think? It could be possible to make radius deal with such situations(larger than 253 octets attributes)? If you think it is, I would like to give it a try. In case it is possible, may you tell me please what part of the source code should I give attention in order to solve this.
The protocol does not allow for it. That means it is not possible. Wichert. -- Wichert Akkerman <wichert@wiggy.net> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple.
Cristian Novac wrote:
What do you think? It could be possible to make radius deal with such situations(larger than 253 octets attributes)?
No. The RADIUS protocol does not support strings longer than 253 octets. This *may* be addressed in a future RFC, but it will take a while. Alan DeKok.
On Mar 26, 2008, at 5:05 PM, Cristian Novac wrote: [..]
What do you think? It could be possible to make radius deal with such situations(larger than 253 octets attributes)? If you think it is, I would like to give it a try. In case it is possible, may you tell me please what part of the source code should I give attention in order to solve this.
For passing information of more than 253, I have done so in VSAs split up and put into multiple attributes - sorta like an EAP- Message. Perhaps that could work for you too. Cheers, David
wlan@mac.com wrote:
On Mar 26, 2008, at 5:05 PM, Cristian Novac wrote: [..]
What do you think? It could be possible to make radius deal with such situations(larger than 253 octets attributes)? If you think it is, I would like to give it a try. In case it is possible, may you tell me please what part of the source code should I give attention in order to solve this.
For passing information of more than 253, I have done so in VSAs split up and put into multiple attributes - sorta like an EAP-Message. Perhaps that could work for you too.
I think this solution may work for me too(splitting the attribute); could you tell me how have you done this?because implicitly freeradius doesn't do the split; Do you have a patch for this? Thank you!
Cheers, David - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
Cristian Novac wrote:
I think this solution may work for me too(splitting the attribute); could you tell me how have you done this?because implicitly freeradius doesn't do the split;
It doesn't do that because there's no standard way to do it. If you want to have longer attributes, you need to modify *both* the client and the server. In most cases, you can't modify the client (e.g. commercial equipment), so modifying the server is a waste of time. There *is* a standard being worked on which may allow longer attributes. Once it is standardized, then clients and servers will support it. Until then, don't waste your time trying to create longer attributes. Alan DeKok.
Alan DeKok wrote:
Cristian Novac wrote:
I think this solution may work for me too(splitting the attribute); could you tell me how have you done this?because implicitly freeradius doesn't do the split;
It doesn't do that because there's no standard way to do it.
If you want to have longer attributes, you need to modify *both* the client and the server. In most cases, you can't modify the client (e.g. commercial equipment), so modifying the server is a waste of time.
There *is* a standard being worked on which may allow longer attributes. Once it is standardized, then clients and servers will support it.
Until then, don't waste your time trying to create longer attributes.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
To be more specific...I work in a wimax environment where radius client is integrated in a tool which knows how to reassemble 2 VSAs; if I could just split my attribute in the server....
On Mar 27, 2008, at 9:09 AM, Cristian Novac wrote: [...]
I think this solution may work for me too(splitting the attribute); could you tell me how have you done this?because implicitly freeradius doesn't do the split; Do you have a patch for this?
No patch required, as you are just inserting vendor specific attributes and coding the logic behind the VSAs. Assuming you are using a VSA (which always requires a bit of client and server support), you can chunk up your data into individual attributes and insert them in order into the request. Server-side, simply reassemble - much like an EAP-Message.
On Mar 27, 2008, at 9:25 AM, Alan DeKok wrote: [...]
It doesn't do that because there's no standard way to do it.
EAP-Message is at least an example - and why one can be assured that attributes maintain their ordering in the packet, no?
If you want to have longer attributes, you need to modify *both* the client and the server. In most cases, you can't modify the client (e.g. commercial equipment), so modifying the server is a waste of time.
What if you aren't using commercial equipment and _do_ have control over both client and server :) David
wlan@mac.com wrote:
EAP-Message is at least an example - and why one can be assured that attributes maintain their ordering in the packet, no?
Yes.
What if you aren't using commercial equipment and _do_ have control over both client and server :)
It's a lot easier, yes. Alan DeKok.
wlan@mac.com wrote:
On Mar 27, 2008, at 9:09 AM, Cristian Novac wrote: [...]
I think this solution may work for me too(splitting the attribute); could you tell me how have you done this?because implicitly freeradius doesn't do the split; Do you have a patch for this?
No patch required, as you are just inserting vendor specific attributes and coding the logic behind the VSAs.
Assuming you are using a VSA (which always requires a bit of client and server support), you can chunk up your data into individual attributes and insert them in order into the request. Server-side, simply reassemble - much like an EAP-Message.
I would like to be able to put in a reply list of attributes of a user, in "users" file from the server,one attribute whitch is longer than 253 B; then...radius server to process this attribute and split it in two or more new attributes. Could you just tell what part of the source code should I concern about in order to do this....
On Mar 27, 2008, at 9:25 AM, Alan DeKok wrote: [...]
It doesn't do that because there's no standard way to do it.
EAP-Message is at least an example - and why one can be assured that attributes maintain their ordering in the packet, no?
If you want to have longer attributes, you need to modify *both* the client and the server. In most cases, you can't modify the client (e.g. commercial equipment), so modifying the server is a waste of time.
What if you aren't using commercial equipment and _do_ have control over both client and server :)
David - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
On Mar 27, 2008, at 10:34 AM, Cristian Novac wrote: [...]
I would like to be able to put in a reply list of attributes of a user, in "users" file from the server,one attribute whitch is longer than 253 B; then...radius server to process this attribute and split it in two or more new attributes. Could you just tell what part of the source code should I concern about in order to do this....
I think you are better off doing it from a different module (sql, perl, python, java, etc). David
participants (4)
-
Alan DeKok -
Cristian Novac -
Wichert Akkerman -
wlan@mac.com