我正在尝试将Active Directory结构复制到Centos 7上的Openldap中。
我按照以下链接中的说明配置了Openldap http://www.learnitguide.net/2016/01/configure-openldap-server-on-rhel7.html
我有从Active Directory导出的.ldif文件(我不确定它是如何导出的。)
现在,当我尝试使用以下命令<。p>将.ldif导入opendap时
ldapadd -x -W -D "cn=Manager,dc=xxx,dc=org" -f /root/abc.ldif
收到错误
[root@ldapmach cn=config]# ldapadd -x -W -D "cn=Manager,dc=xxx,dc=org" -f /root/abc.ldif
Enter LDAP Password:
adding new entry "CN=Schema,CN=Configuration,DC=xxx,DC=org"
ldap_add: Undefined attribute type (17)
additional info: instanceType: attribute type undefined
AD Ldif文件中存在许多此类属性,Openldap无法识别这些属性。
任何人都可以帮助将这些AD数据导入openldap。
如果需要更多信息,请告诉我。
答案 0 :(得分:0)
OpenLDAP随附的标准LDAP架构并不包括从Active Directory导入LDIF文件所需的所有属性。 因此,必须对某些模式进行编辑以包括以下属性:
参见