网络设备的 ACL

发布于 2024-07-12 02:45:58 字数 373 浏览 7 评论 0原文

我需要为设备实现基于 ACL 的身份验证机制。 该设备可以通过各种接口访问,例如网页、TL1(基本上通过一些命令提示符)等。

我需要保持 ACL 逻辑集中,以便可以对来自任何接口的请求进行身份验证。

ACL 逻辑基本上会检查登录用户是否可以执行他尝试执行的操作。 为此,我将创建组并将用户添加到这些组中。 每个组将维护该特定组下允许的操作列表。

有人可以建议是实现这一点的最佳方法吗?

是否有任何现有的软件/工具可以让我实现这一目标? 有开源项目吗?

我是一名 C/C++ 程序员,也是 ACL 概念的新手。 上述模块是针对Linux操作系统开发的。 Web 界面将采用 CGI。

提前致谢。

I need to implement ACL based authentication mechanism for a device. This device can be accessed through various interfaces like web pages, TL1 (basically through some command prompt) etc.

I need to keep ACL logic centralized so that request from any interface can be authenticated.

ACL logic would basically check whether the logged in user can perform the operation he is trying to perform. For this I will create groups and add users to these groups. Each group would maintain list of operation allowed under that particular group.

Can someone suggest be the best way to implement this?

Is there any existing software/tool that allows me to achieve this? Any open source project?

I am a C/C++ programmer and a newbie to the ACL concept. Above mentioned module is to be developed for Linux OS. Web interface will be in CGI.

Thanks in advance.

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

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

发布评论

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

评论(1

回忆追雨的时光 2024-07-19 02:45:58

你的问题具有误导性。 在大多数情况下,您所问的问题与 Linux 中文件系统对象的 ACL 无关。

我假设你的 cgi 是一个用 c++ 编写的单个文件。

您将不得不使用一些本地数据存储解决方案。 在你的地方我使用了 sqlite 或其他一些基于 sql 的解决方案。

我认为,您的 acl 列表(不是基于文件系统的 ACL)应该存储在您的本地数据库中。

另外,我建议至少使用多线程 fcgi,大的 cgi 二进制文件确实非常不理想。

Your question is misleading. What you ask, has in most cases nothing to do with the ACLs of the filesystem objects in linux.

I'm assuming your cgi is a single file, written in c++.

You will have to use some local data storage solution. In your place I used sqlite, or some other sql-based solution.

I think, your acl lists - which aren't filesystem-based ACLs - should be stored in your local database.

P.s. Furthermore, I suggest to use at least multithreaded fcgi, big cgi binaries are really highly suboptimal.

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