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

Migrating from OpenLDAP 2.0 to 2.2


I have to migrate a large LDAP Dictionary from 2.0.23 to 2.2.14. I have 
problems loading the ldif data in OpenLDAP 2.2 and could not find a 
solution searching the Net/NG's.

I first used slapcat on the old system to create the ldif file. A single entry 
looks as follows:

dn: uid=username,ou=people,ou=solnet,dc=solnet,dc=ch
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: account
objectClass: posixAccount
uid: username
maildrop: username@domain.mailserver.ch
userPassword:: (encryptedpassword)
cn: Some User
mailacceptinggeneralid: username@provider.ch
uidNumber: 1234
gidNumber: 1234
homeDirectory: /some/where/user
loginShell: /bin/date

When I use slapadd to load this LDIF on the new system, I get this error 

(65) invalid structural object class chain (inetOrgPerson/account)

According to some posts, objectClass account can be removed because it's 
attributes are provided by person. But now, I get this:

(65) object class 'inetOrgPerson' requires attribute 'sn'

Some users suggested to use account but changing it's SUP Value to 
'AUXILARY'. But this will produce the same error as above. I also followed 
thew following thread but could not work out the problem:


I still get this:

(65) object class 'inetOrgPerson' requires attribute 'sn'

Can anybody help please?