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

slapadd: could not parse entry (line=14112)



Dear everyone,

I am very new to LDAP and this is the first time I have tried to set-up 
a server.  We intend to move from NIS+ to LDAP, which means I have to 
test that it will work OK.

I initially ran this PADL supplied script to convert my NIS+ dumped 
tables into LDIF, but the first time I ran it /slapadd /errored on the 
first blank line that separated each entry.
slapadd: could not parse entry (line=7)

So I put sed into the script to strip off each line. (I used this:  cat 
$DB.tmp | sed -e'/^$/d' > $DB), which does the job.

./migrate_all_offline.sh
Creating naming context entries...
Migrating aliases...
Migrating groups...
Migrating hosts...
Migrating networks...
Migrating users...
Migrating protocols...
Migrating rpcs...
Migrating services...
Migrating netgroups...
Importing into LDAP...
Migrating netgroups (by user)...
Migrating netgroups (by host)...
Preparing LDAP database...
*slapadd: could not parse entry (line=14112)*

However, when slapadd came to the end of the .ldif file it still gives 
the same error message but there are no blank lines  nor are there any 
control characters hidden in the file.
slapadd: could not parse entry (line=14112)

Has anyone found away around this?  I am using OpenLDAP 2.1.30.

Regards, Simon.

-- 

ISG/Gemini/AURA