[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldapadd of LDIF files with attribute 'apple-generateduid' not allowed [Resolved]



At it turns out the problem was with the objectClasses. 

I should have used : 
  • objectClass: top
  • objectClass: person
  • objectClass: organizationalPerson
  • objectClass: inetOrgPerson
  • objectClass: extensibleObject
Instead of 
  • objectClass: top
  • objectClass: person
  • objectClass: inetOrgPerson
Adding the extra attributes to the objectClass resolved this problem.
Thanks for all your help.

Regards
Alex


On 21 Feb 2008, at 11:56, Alexander Hartner wrote:

I am trying to import a simple LDIF file into OpenDirectory on OS X
10.5.2 Leopard Server.

However when I issue the following ldapadd command I get an error :

ldapadd -D [rootdn] -x -w [secretPassword] -f Import.ldif

Error : 65 Object class violation"
attribute 'apple-generateduid' not allowed


I would have thought that I had specified apple-generateduid, but I
didn't.

This is my import file
-----------BEGIN-----------
# Alexander Hartner
dn: cn=Alexander Hartner2,cn=people,dc=macbook-znet,dc=local
objectClass: top
objectClass: person
objectClass: inetOrgPerson
displayName: Alexander Hartner2
cn: Alexander Hartner2
givenName: Alexander
sn: Hartner
mail: alex@j2anywhere.com
initials: A
o: j2anywhere.com
-----------END-----------

I know this might not be the best forum for OS X support, but I am a
bit stuck on this.
Thanks in advance.
Alex