我正在尝试导入包含以下内容的 ldif 文件-
DN: cn=myUser,cn=Users,dc=us,dc=oracle,dc=com
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetorgperson
objectclass: orcluser
objectclass: orcluserV2
cn: myUser
givenname: myUser
mail: myUser
orclsamaccountname: myUser
sn: myUser
uid: myUser
userpassword:: somepassword
dn: cn=Administrator,cn=Groups,dc=us,dc=oracle,dc=com
objectclass: person
changetype: modify
add: uniquemember
uniquemember: cn=myUser,cn=Users,dc=us,dc=oracle,dc=com
当我这样做时,LDAP 会引发以下错误
javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - Failed to find add in mandatory or optional attribute list.];
remaining name 'cn=Administrator,cn=Groups,dc=us,dc=oracle,dc=com'
用户已导入,但未添加到组(组已存在)。我遗漏了什么?
答案1
uniqueMember
对象类不允许或不需要该person
对象类。请使用groupOfUniqueNames
对象类。