[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: slapadd and comments
I forgot to clarify that I deleted all data files and cycled slapd right before trying this. I agree that that would be the obvious solution but it should be completely clean.
Jamey
-----Original Message-----
From: Esfahani, Shahram [mailto:Shahram.Esfahani@adc.com]
Sent: Wednesday, October 01, 2003 5:58 PM
To: James Courtney; Open LDAP Software (E-mail)
Subject: RE: slapadd and comments
James,
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.
Regards,
Shahram
-----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)
Thanks!
James Courtney
InPhonic, Inc.
<<test2.ldif>> <<test.ldif>>