Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to import an ldif file which has following content-

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

When I do this, LDAP throws follwing error

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'

The user gets imported, but it is not added to the group(Group exists). What am i missing ?

share|improve this question

1 Answer 1

uniqueMember is not allowed or required by the person objectClass. Use the groupOfUniqueNames objectClass.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.