我正在尝试将ldif文件加载到运行在容器中的OpenLdap实例中:
docker run --env LDAP_ORGANISATION="jboss" --env LDAP_DOMAIN="jboss.com" --env LDAP_ADMIN_PASSWORD="admin" --detach osixia/openldap
现在我正在尝试使用UI上传以下ldif文件,该文件曾用于OpenLdap的无容器安装:
dn: dc=jboss,dc=com
objectclass: top
objectclass: dcObject
objectclass: organization
dc: jboss
o: MCC
dn: ou=People,dc=jboss,dc=com
objectclass: top
objectclass: organizationalUnit
ou: People
dn: uid=admin,ou=People,dc=jboss,dc=com
objectclass: top
objectclass: uidObject
objectclass: person
uid: admin
cn: Manager
sn: Manager
userPassword: secret
dn: ou=Roles,dc=jboss,dc=com
objectclass: top
objectclass: organizationalUnit
ou: Roles
dn: cn=Manager,ou=Roles,dc=jboss,dc=com
objectClass: top
objectClass: groupOfNames
cn: Manager
description: the JBossAS7 group
member: uid=admin,ou=People,dc=jboss,dc=com
结果,在最后一行引发了以下异常:
LDAP: error code 65 - invalid structural object class chain (organization/organizationalUnit)]; remaining name 'cn=Manager,ou=Roles,dc=jboss,dc=com'
如果出现,则无法添加用户admin所属的组管理器。你能发现ldif文件中的任何错误吗? 谢谢!