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

RE: Problems using slapadd



Or "grep -v "^[^:]*:[ \t]*$" your.ldif >another.ldif".

-----Original Message-----
From: Rafael Neitzel [mailto:rneitzel@terra.com.br]
Sent: Thursday, March 15, 2001 5:42 PM
To: Darren Jacobs
Cc: openldap-software@OpenLDAP.org
Subject: Re: Problems using slapadd


OpenLDAP tools IMHO don't work well when the attribute has an empty
value.

Simply do this to cut out the empty attributes:

cat your-ldif-file.ldif | grep -v ": $" > your-ldif-file2.ldif

On Thu, 15 Mar 2001 21:47:34 -0330
"Darren Jacobs" <darrenj@mun.ca> wrote:

> Hello All,
> 
> Having some problems importing the contents of a 210,769 line ldif file
> using slapadd.  I keep getting the error:
> 
>  slapadd: could not parse entry (line=210770)
> 
> This is the last line in my ldif file and it is not deformed or undefined
in
> anyway, its simply formated as:
> 
> employee:
> 
> with no employee number following it.  can anyone suggest why it could be
> throwing the above error?
> 
> 
> 
> 
> Regards,
> 
> Darren....
> 

-- 
Rafael Rocha Neitzel <rneitzel@terra.com.br>/<rneitzel@corp.terra.com.br>
Terra Networks Brasil - www.terra.com.br
(51) 2844277 - (51) 99169095