用于在 OpenLDAP 中创建 Active Directory 用户和组的 LDIF?
我有一个使用 Active Directory 来验证用户身份的 Web 应用程序,并且我正在尝试用 OpenLDAP 替换 AD。
文档说我需要以管理员身份登录域控制器,打开用户管理窗口,单击适当的组织单位并将用户ID添加到适当的组(这些组应具有范围“全局”和组类型“安全” )。
我需要在 OpenLDAP 服务器上创建等效条目。有人可以为此提供一个 LDIF 示例吗?我不知道应该使用的类或属性,而且我无权访问域控制器。最有问题的项目似乎是组类型和范围,因为它们似乎是二进制值,而不是字符串。
请注意,我不想完全替换 Active Directory - 我只需要用户 ID 和组。我尝试将 microsoft.schema 添加到 OpenLDAP,但它不起作用。我找到了一些有关修改 Microsoft Outlook 架构的信息;我需要类似但更简单的东西。
I have a web application that uses Active Directory to authenticate users, and I'm trying to replace AD with OpenLDAP.
The documentation says that I need to log on the domain controller as administrator, open the user management window, click on the appropriate organizational unit and add the userids to the proper groups (these groups should have scope "Global" and group type "Security").
I need to create the equivalent entries on my OpenLDAP server. Can someone provide an example LDIF for this? I don't know the class nor the attributes I should use, and I don't have access to a domain controller. The most problematic items seems to be group type and scope, because they seem to be binary values, not strings.
Please note that I don't want to replace Active Directory completely - I just need userids and groups. I've tried adding microsoft.schema to OpenLDAP, but it doesn't work. I've found some information about modifying the schema for Microsoft Outlook; I need something similar but simpler.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将整个 ActiveDirectory 架构转换为 OpenLDAP 几乎是不可能的,它非常庞大。但是,我们可以仅添加所需的属性和类:
然后很容易创建 LDIF 文件来插入用户和组:
It's almost impossible to convert the entire ActiveDirectory schema to OpenLDAP, it's huge. However, we can add only the needed attributes and classes:
Then it's easy to create an LDIF file for inserting the users and groups:
好的,这是答案的开始:
安装 OPENLdap
A 后,将
slapd.conf
编辑为:1) 修改包含的架构
2) 将架构文件修改为此常见问题解答中进行了解释
3) 修改您的命名上下文(个人)我使用 HDB 作为后端)
4)然后重新启动您的目录
B - 插入您的根目录
这是 LDIF 文件(root.ldif)
这是命令行
C - 插入用户< /strong>
这是 LDIF 文件 (user.ldif)
这是命令行
D - 建议
Apache 目录工作室,对我来说,这是一个非常好的 LDAP 浏览器,它是开源的,它可以在 Linux 和 Windows 上的 java 之上运行。使用它,您可以图形方式浏览 AD 和 OpenLdap,只需单击即可执行 B 部分和 C 部分。
Active-Directory 架构(类和属性) 已记录在 MSDN 中。例如,以下是有关 groupType。是你所期望的吗?
Ok, here is the begining of an answer :
Once you installed your OPENLdap
A - Edit your
slapd.conf
to :1) Modify the schemas included
2) Modifiy schema files as explained in this FAQ
3) Modify your naming context (personaly I'am using HDB as backend)
4) Then restart your directory
B - Insert your root
Here is the LDIF file (root.ldif)
Here is the command line
C - Insert a user
Here is the LDIF file (user.ldif)
Here is the command line
D - An advice
Apache directory studio, is for me, a VERY good LDAP Browser, it's Open Source, it works on the top of java on Linux and Windows. Using it you can graphicaly browse AD and OpenLdap and do parts B and C just clicking.
Active-Directory Schema (Classes and attributes) are documented in the MSDN. For example here are the information about groupType. Is it what you expect?