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

RE: slapadd and comments


You can see from the ldap_add error "ldap_add: Already exists (68)" that your problem lies in the entries being added already existing in your LDAP database.  The comments you have in your LDIF files are fine.  You should examine your database and remove the duplicate entries from your LDIF file and try to slapadd it again.


-----Original Message-----
From: James Courtney [mailto:Jcourtney@inphonic.com]
Sent: Wednesday, October 01, 2003 18:01
To: Open LDAP Software (E-mail)
Subject: slapadd and comments

slapadd seems very sensitive to comments in ldif files.  What give?  Attached are two test ldif files.

slapadd -b o=myinunison -l test.ldif fails with the following message:

"slapadd: could not parse entry (line=8)"  

slapadd -b o=myinunison -l test2.ldif succeeds.

I don't get it, comments should be ignored as should blank lines right?

In a related subject, ldapadd seems even pickier:

[root@tiger 2.1.22]# ./bin/ldapadd -h <myserver> -D cn=Administrator -w <mypassword> -x -f test2.ldif
adding new entry "o=mydomain"
ldapadd: update failed: o=mydomain
ldap_add: Already exists (68)


James Courtney
InPhonic, Inc.
 <<test2.ldif>>  <<test.ldif>>