扩展 Radius 协议

发布于 2024-08-30 08:28:09 字数 118 浏览 9 评论 0原文

我打算使用 radius 协议将一些值从客户端发送到服务器。我正在使用供应商特定的值对,并且我也定义了类型。 然而,供应商特定数据的值长度是 255,但我的数据长度超过了它。 谁能告诉我如何合并超过 255 字节的数据?

I intend to use radius protocol to send some values from client to server.I am using vendor-specific value pairs and I have defined types as well.
However,value length for vendor-specific data is 255 but my data length is crossing it.
can any one please tell me how to incorporate data longer than 255 bytes?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谜兔 2024-09-06 08:28:09

您应该使用 RFC 6929 Extended-Vendor-Specific-5 或 < a href="https://www.rfc-editor.org/rfc/rfc6929#section-4.6" rel="nofollow noreferrer">Extended-Vendor-Specific-6,两者都允许您指定“更多”标志,指示该属性被分解为多个属性。

这允许 RADIUS 服务器自动重新组装完整的值,并保证值片段不会被代理重新排序。

You should use RFC 6929 Extended-Vendor-Specific-5 or Extended-Vendor-Specific-6, Both which allow you to specify a 'more' flag, to indicate the attribute is broken across several attributes.

This allows RADIUS servers to automatically reassemble the complete value, and guarantees that the value fragments are not re-ordered by proxies.

终难遇 2024-09-06 08:28:09

它只是一个 UDP 数据包,只要您不打算使用常见的 RADIUS 服务器,您当然可以定义一个新的消息值。例如,我可以定义一个新的基本消息类型,其中八位位组值的数量现在为八位位组的倍数,例如 16 字节。

在这种情况下,新消息类型的八位字节大小可以为230。这不再是230字节,而是230*8 = 1840字节。

唯一的问题是标准 RADIUS 服务器何时发现它。

It's just a UDP packet, and so long as you don't intend to work with a common RADIUS server out there, you can certainly define a new message value. For example, I could define a new base message type where the number of octets value is now in octet multiples, for example, 16 bytes.

In this case, the new message type may have an octet size of 230. This is no longer 230 bytes, but 230*8 = 1840 bytes.

The only problem is when a standard RADIUS server sees it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文