Hello,
I’m setting up a new openldap(2.4.50) server and am running into this odd error message when importing my initial slapd.ldif file:
# slapadd -v -n 0 -F slapd.d -l slapd.ldif added: "cn=config" (00000001) added: "cn=module{0},cn=config" (00000001) added: "cn=schema,cn=config" (00000001) added: "cn={0}core,cn=schema,cn=config" (00000001) added: "cn={1}cosine,cn=schema,cn=config" (00000001) added: "cn={2}inetorgperson,cn=schema,cn=config" (00000001) added: "cn={3}rfc2307bis,cn=schema,cn=config" (00000001) added: "cn={4}openldap,cn=schema,cn=config" (00000001) added: "cn={5}ppolicy,cn=schema,cn=config" (00000001) added: "cn={6}misc,cn=schema,cn=config" (00000001) added: "olcDatabase={-1}frontend,cn=config" (00000001) added: "olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={0}ppolicy,olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={1}memberof,olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={2}refint,olcDatabase={1}mdb,cn=config" (00000001) 5ee172af str2entry: entry -1 has no dn slapadd: could not parse entry (line=1500) _#################### 100.00% eta none elapsed none fast! Closing DB…
Slapadd claims to have completed 100%, but also complains about entry -1 having no dn:
Any advice?
Cheers, Scott
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Scott Classen, Ph.D. ALS-ENABLE TomAlberTron Beamline 8.3.1 SIBYLS Beamline 12.3.1 Advanced Light Source Lawrence Berkeley National Laboratory 1 Cyclotron Rd MS6R2100 Berkeley, CA 94720 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What's on line 1500?
On Wed, Jun 10, 2020 at 8:08 PM Scott Classen sclassen@lbl.gov wrote:
Hello,
I’m setting up a new openldap(2.4.50) server and am running into this odd error message when importing my initial slapd.ldif file:
# slapadd -v -n 0 -F slapd.d -l slapd.ldif added: "cn=config" (00000001) added: "cn=module{0},cn=config" (00000001) added: "cn=schema,cn=config" (00000001) added: "cn={0}core,cn=schema,cn=config" (00000001) added: "cn={1}cosine,cn=schema,cn=config" (00000001) added: "cn={2}inetorgperson,cn=schema,cn=config" (00000001) added: "cn={3}rfc2307bis,cn=schema,cn=config" (00000001) added: "cn={4}openldap,cn=schema,cn=config" (00000001) added: "cn={5}ppolicy,cn=schema,cn=config" (00000001) added: "cn={6}misc,cn=schema,cn=config" (00000001) added: "olcDatabase={-1}frontend,cn=config" (00000001) added: "olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={0}ppolicy,olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={1}memberof,olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={2}refint,olcDatabase={1}mdb,cn=config" (00000001) 5ee172af str2entry: entry -1 has no dn slapadd: could not parse entry (line=1500) _#################### 100.00% eta none elapsed none fast!
Closing DB…
Slapadd claims to have completed 100%, but also complains about entry -1 having no dn:
Any advice?
Cheers, Scott
Scott Classen, Ph.D. ALS-ENABLE TomAlberTron Beamline 8.3.1 SIBYLS Beamline 12.3.1 Advanced Light Source Lawrence Berkeley National Laboratory 1 Cyclotron Rd MS6R2100 Berkeley, CA 94720
Heck if I know
# wc -l slapd.ldif 160 slapd.ldif
On Jun 10, 2020, at 5:23 PM, Nick Folino nick@folino.us wrote:
What's on line 1500?
On Wed, Jun 10, 2020 at 8:08 PM Scott Classen <sclassen@lbl.gov mailto:sclassen@lbl.gov> wrote: Hello,
I’m setting up a new openldap(2.4.50) server and am running into this odd error message when importing my initial slapd.ldif file:
# slapadd -v -n 0 -F slapd.d -l slapd.ldif added: "cn=config" (00000001) added: "cn=module{0},cn=config" (00000001) added: "cn=schema,cn=config" (00000001) added: "cn={0}core,cn=schema,cn=config" (00000001) added: "cn={1}cosine,cn=schema,cn=config" (00000001) added: "cn={2}inetorgperson,cn=schema,cn=config" (00000001) added: "cn={3}rfc2307bis,cn=schema,cn=config" (00000001) added: "cn={4}openldap,cn=schema,cn=config" (00000001) added: "cn={5}ppolicy,cn=schema,cn=config" (00000001) added: "cn={6}misc,cn=schema,cn=config" (00000001) added: "olcDatabase={-1}frontend,cn=config" (00000001) added: "olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={0}ppolicy,olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={1}memberof,olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={2}refint,olcDatabase={1}mdb,cn=config" (00000001) 5ee172af str2entry: entry -1 has no dn slapadd: could not parse entry (line=1500) _#################### 100.00% eta none elapsed none fast! Closing DB…
Slapadd claims to have completed 100%, but also complains about entry -1 having no dn:
Any advice?
Cheers, Scott
Scott Classen, Ph.D. ALS-ENABLE TomAlberTron Beamline 8.3.1 SIBYLS Beamline 12.3.1 Advanced Light Source Lawrence Berkeley National Laboratory 1 Cyclotron Rd MS6R2100 Berkeley, CA 94720
Did you export it with slapcat?
On Wed, Jun 10, 2020 at 8:24 PM Scott Classen sclassen@lbl.gov wrote:
Heck if I know
# wc -l slapd.ldif 160 slapd.ldif
On Jun 10, 2020, at 5:23 PM, Nick Folino nick@folino.us wrote:
What's on line 1500?
On Wed, Jun 10, 2020 at 8:08 PM Scott Classen sclassen@lbl.gov wrote:
Hello,
I’m setting up a new openldap(2.4.50) server and am running into this odd error message when importing my initial slapd.ldif file:
# slapadd -v -n 0 -F slapd.d -l slapd.ldif added: "cn=config" (00000001) added: "cn=module{0},cn=config" (00000001) added: "cn=schema,cn=config" (00000001) added: "cn={0}core,cn=schema,cn=config" (00000001) added: "cn={1}cosine,cn=schema,cn=config" (00000001) added: "cn={2}inetorgperson,cn=schema,cn=config" (00000001) added: "cn={3}rfc2307bis,cn=schema,cn=config" (00000001) added: "cn={4}openldap,cn=schema,cn=config" (00000001) added: "cn={5}ppolicy,cn=schema,cn=config" (00000001) added: "cn={6}misc,cn=schema,cn=config" (00000001) added: "olcDatabase={-1}frontend,cn=config" (00000001) added: "olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={0}ppolicy,olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={1}memberof,olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={2}refint,olcDatabase={1}mdb,cn=config" (00000001) 5ee172af str2entry: entry -1 has no dn slapadd: could not parse entry (line=1500) _#################### 100.00% eta none elapsed none fast!
Closing DB…
Slapadd claims to have completed 100%, but also complains about entry -1 having no dn:
Any advice?
Cheers, Scott
Scott Classen, Ph.D. ALS-ENABLE TomAlberTron Beamline 8.3.1 SIBYLS Beamline 12.3.1 Advanced Light Source Lawrence Berkeley National Laboratory 1 Cyclotron Rd MS6R2100 Berkeley, CA 94720
No, I conjured it from scratch which makes me think I’ve probably inadvertently introduced an LDIF formatting error.
Weird thing is that I can start the server and authenticate against it… so it works… I’m just worried about the error.
Scott
On Jun 10, 2020, at 5:39 PM, Nick Folino nick@folino.us wrote:
Did you export it with slapcat?
On Wed, Jun 10, 2020 at 8:24 PM Scott Classen <sclassen@lbl.gov mailto:sclassen@lbl.gov> wrote: Heck if I know
# wc -l slapd.ldif 160 slapd.ldif
On Jun 10, 2020, at 5:23 PM, Nick Folino <nick@folino.us mailto:nick@folino.us> wrote:
What's on line 1500?
On Wed, Jun 10, 2020 at 8:08 PM Scott Classen <sclassen@lbl.gov mailto:sclassen@lbl.gov> wrote: Hello,
I’m setting up a new openldap(2.4.50) server and am running into this odd error message when importing my initial slapd.ldif file:
# slapadd -v -n 0 -F slapd.d -l slapd.ldif added: "cn=config" (00000001) added: "cn=module{0},cn=config" (00000001) added: "cn=schema,cn=config" (00000001) added: "cn={0}core,cn=schema,cn=config" (00000001) added: "cn={1}cosine,cn=schema,cn=config" (00000001) added: "cn={2}inetorgperson,cn=schema,cn=config" (00000001) added: "cn={3}rfc2307bis,cn=schema,cn=config" (00000001) added: "cn={4}openldap,cn=schema,cn=config" (00000001) added: "cn={5}ppolicy,cn=schema,cn=config" (00000001) added: "cn={6}misc,cn=schema,cn=config" (00000001) added: "olcDatabase={-1}frontend,cn=config" (00000001) added: "olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={0}ppolicy,olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={1}memberof,olcDatabase={1}mdb,cn=config" (00000001) added: "olcOverlay={2}refint,olcDatabase={1}mdb,cn=config" (00000001) 5ee172af str2entry: entry -1 has no dn slapadd: could not parse entry (line=1500) _#################### 100.00% eta none elapsed none fast! Closing DB…
Slapadd claims to have completed 100%, but also complains about entry -1 having no dn:
Any advice?
Cheers, Scott
Scott Classen, Ph.D. ALS-ENABLE TomAlberTron Beamline 8.3.1 SIBYLS Beamline 12.3.1 Advanced Light Source Lawrence Berkeley National Laboratory 1 Cyclotron Rd MS6R2100 Berkeley, CA 94720
--On Wednesday, June 10, 2020 6:07 PM -0700 Scott Classen sclassen@lbl.gov wrote:
5ee172af str2entry: entry -1 has no dn slapadd: could not parse entry (line=1500) _#################### 100.00% eta none elapsed none fast!
Closing DB…
Slapadd claims to have completed 100%, but also complains about entry -1 having no dn:
It's not "entry -1" it's that there's an entry that has no DN creating an error of -1. The bad/problematic entry would appear to be at the very end of the LDIF file.
I would suggest you add "-d -1" to the options you pass slapadd (That's a minus one, not a one). The output should give you a clue to what line(s) are problematic.
Regards, Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
Well my ACLs are apparently misconfigured… Thanks for the tip Quanah
On Jun 10, 2020, at 6:01 PM, Quanah Gibson-Mount quanah@symas.com wrote:
--On Wednesday, June 10, 2020 6:07 PM -0700 Scott Classen sclassen@lbl.gov wrote:
5ee172af str2entry: entry -1 has no dn slapadd: could not parse entry (line=1500) _#################### 100.00% eta none elapsed none fast!
Closing DB…
Slapadd claims to have completed 100%, but also complains about entry -1 having no dn:
It's not "entry -1" it's that there's an entry that has no DN creating an error of -1. The bad/problematic entry would appear to be at the very end of the LDIF file.
I would suggest you add "-d -1" to the options you pass slapadd (That's a minus one, not a one). The output should give you a clue to what line(s) are problematic.
Regards, Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
openldap-technical@openldap.org