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

Re: Migrating from 1.2 to 2.0.12?



> Pierangelo Masarati wrote:
> > 
> > > Hi Folks!
> > >
> > > I want to migrate from openldap 1.2 to 2.0.12.
> > > How can I convert / migrate my data?
> > >
> > > I tried to export my data as LDIF (ldbmcat) and re-import it with
> > > slapadd. Did not
> > > work with the following error message:
> > > slapadd: str2entry: invalid value for syntax 1.3.6.1.4.1.1466.115.121.1.15
> > 
> > You need to manually edit the offending attribute values to make
> > them comply with the appropriate syntax.  Check the schema files
> > (or directly the appropriate rfc, 2252 and related) to determine
> > what bytes do not comply.
> 
> slapadd complains that the error is in line 1665. As far as I know
> lines starting with a blank are continued lines. 
> so I wrote a script that concatenates these lines. line 1665 is now:
> nsliversion: 1

I'll check again; however I thik the line count is intended _BEFORE_ wrapping

> 
> This line occurs about 500 times in my LDIF data file. slapadd does
> not complain about this line earlier in my LDIF file. 
> So what did I do wrong when counting the lines?
> 
> Another question: Is the order of the nodes being inserted relevant? I
> mean, if I insert a node referring to an node not being inserted yet
> (with an "owner"-attribute),  does this work with slapadd?
> ldapadd would complain, no question, but how is this with slapadd?
> Does slapadd do a integritycheck on the data? (I guess not, but don't
> know exactly)

Again, I'll check, but I think it is not. slapadd basically checks for
syntax, not for tree consistency.

Pierangelo.