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

Problems importing data from 2.2 to 2.3



I'm trying to move our openldap servers to 2.3 so we can use the improved synchronization. Our servers are running 2.2 right now, and I've compiled the latest 2.3 build on my box here to do some testing.

I've looked all over the lists and online, and I can't find an answer to this. I'm still a ldap noob, but I've been working on it for the past week or two, so I've got a clue at least (I think).

When I run slapadd -d -1 -l foo, I'm getting the following error:

>>> dnPrettyNormal: <uid=jsmith,ou=people,dc=acme,dc=com>
<<< dnPrettyNormal: <uid=jsmith,ou=people,dc=acme,dc=com>, <uid=jsmith,ou=people,dc=acme,dc=com>
str2entry: invalid value for attributeType objectClass #1 (syntax 1.3.6.1.4.1.1466.115.121.1.38)
slapadd: could not parse entry (line=76)


We're using Suse here, and I took out the Suse specific entries that didn't look necessary. I figure the compiled version wouldn't know or care about anything specific to openldap that came with Suse.

Here is my ldif file that I'm using.

dn: dc=acme,dc=com
objectClass: organization
objectClass: dcObject
o: Acme
dc: acme
structuralObjectClass: organization
entryUUID: f074a400-fda7-1028-8534-cfac38c1a3c3
creatorsName: cn=admin,dc=acme,dc=com
createTimestamp: 20050118142107Z
entryCSN: 20050118142107Z#000001#00#000000
modifiersName: cn=admin,dc=acme,dc=com
modifyTimestamp: 20050118142107Z

dn: ou=people,dc=acme,dc=com
objectClass: organizationalUnit
ou: people
structuralObjectClass: organizationalUnit
entryUUID: f07b2172-fda7-1028-8535-cfac38c1a3c3
creatorsName: cn=admin,dc=acme,dc=com
createTimestamp: 20050118142107Z
entryCSN: 20050118142107Z#000002#00#000000
modifiersName: cn=admin,dc=acme,dc=com
modifyTimestamp: 20050118142107Z

dn: ou=ldapconfig,dc=acme,dc=com
objectClass: top
objectClass: organizationalUnit
ou: ldapconfig
structuralObjectClass: organizationalUnit
entryUUID: fdcdcac8-fda7-1028-8536-cfac38c1a3c3
creatorsName: cn=admin,dc=acme,dc=com
createTimestamp: 20050118142130Z
entryCSN: 20050118142130Z#000001#00#000000
modifiersName: cn=admin,dc=acme,dc=com
modifyTimestamp: 20050118142130Z

dn: uid=jsmith,ou=people,dc=acme,dc=com
sn: smith
o: Acme
objectClass: top
objectClass: posixAccount
objectClass: shadowAccount
objectClass: inetOrgPerson
objectClass: inetLocalMailRecipient
shadowInactive: -1
shadowMin: 0
shadowMax: 99999
loginShell: /bin/bash
postalAddress: 304 South Main Road
uidNumber: 2012
shadowWarning: 7
homeDirectory: /home/jsmith
ou: Staff
shadowLastChange: 12752
postalCode: 99999
street: 304 South Main Road
uid: jsmith
l: Anytown
st: FL
title: Webman
mail: john@acme.com
givenName: John
gidNumber: 1000
structuralObjectClass: inetOrgPerson
entryUUID: 29a53068-09b6-1029-8dce-f0632fb9959d
creatorsName: cn=admin,dc=acme,dc=com
createTimestamp: 20050202223310Z
cn: John Smith
employeeType: NOREWRITE
userPassword: xxxxxxxxxx5rNFhCaGp2NGROTlU=
mailLocalAddress: john@acme.com
mailRoutingAddress: jsmith
entryCSN: 20051107130600Z#000001#00#000000
modifiersName: cn=admin,dc=acme,dc=com
modifyTimestamp: 20051107130600Z


-- Thanks, Sam