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

Help with upgrading OpenLDAP...



Hi Folks,

I have been using an old version of OpenLDAP that came with SuSE 7.2
for about 3 years.  I have quite a lot of data in it.

I have started to move it to a newer version of OpenLDAP, and I have
most things up and running, but I can't actually get my data into the
directory!

The first file is the following, I had to add the objectClass:
organization and o: oldhammbc to this file, it worked without this on
the older OpenLDAP.

dn: o=oldhammbc, c=uk
objectClass: top
objectClass: organization
o: oldhammbc

# ODA,oldhammbc, uk
dn: ou=ODA,o=oldhammbc, c=uk
ou: ODA
objectClass: top
objectClass: organizationalUnit

# China Trade Centre,oldhammbc, uk
dn: ou=China Trade Centre,o=oldhammbc, c=uk
ou: China Trade Centre
objectClass: top
objectClass: organizationalUnit

# Shop At Oldham,oldhammbc, uk
dn: ou=Shop At Oldham,o=oldhammbc, c=uk
ou: Shop At Oldham
objectClass: top
objectClass: organizationalUnit

This goes in fine using slapadd, the second file gets stuck straight
away with this:

dn: uid=XXXXXXXX.XXXXXXXX,o=oldhammbc,c=uk
uid: decision.recording
userPassword: XXXXXXX
mail: XXXXXXXX@oldham.gov.uk
accountStatus: active
mailMessageStore: XXXXXXXX.XXXXXXXX
mailAlternateAddress: XXXXXXXX@XXXXXXXX.oldham.gov.uk
deliveryMode: normal
objectClass: top
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: qmailuser
objectClass: ombcperson
objectClass: person
qmailGID: 507
qmailUID: 503
givenName: XXXXXXXX
sn: XXXXXXXX
cn: XX XXXXXXXX XXXXXXXX
departmentShortName: XX
departmentLongName: XXXXXXXX XXXXXXXX's XXXXXXXX
subschemaSubentry: cn=Subschema
mailType: with Prefix
modifiersName: cn=administrator, o=oldhammbc, c=uk
modifyTimestamp: 20040119095346Z

(Sorry for the X's) I am adding it with the following:

slapadd -f slapd-create.conf -l slapcat.ldif.200502120100

The error I am getting is this:

slapadd: dn="uid=XXXXXXXX.XXXXXXXX,o=oldhammbc,c=uk" (line=26): (65)
invalid structural object class chain (inetOrgPerson/ombcPerson)

Can anyone help?  I can post my ombcPerson schema and the slapd.conf
file if people need them, but I was worried about posting so much
information in one go.

Thanks alot for any help given!

-- 
Thanks,

Andrew McCall
andrew.mccall@gmail.com