[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Simple Paged Results Extension
> I still can't keep slapd from crashing every time I do an
> ldapmodify/ldapadd. After it crashes, it won't restart again until
> /var/lib/ldap is cleared out. This doesn't happen when I use ldbm.
>
> slapd crashes with:
> <= index_entry_add( 1, "dc=com" ) success
> bdb_dn2entry("cn=ldapsync,")
^^^^^^^^^^^^
this is anything but a valid DN; can you provide
an excerpt of the .ldif that is causing the crash?
The crash itself might (and is likely to be) a
bug, but your input sounds incorrect. It is
captured by an assertion, that's why the server
"crashes"; actually, it's dying with a precise
indication of the reason of failure.
p.
> => bdb_dn2id( "" )
> <= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found
> (-30990)
> => bdb_dn2id_add( "cn=ldapsync,", 0x00000002 )
> slapd: dn.c:696: dnParent: Assertion `( ( ( ( (p[ 0 ]) >= 'a' && (p[ 0
> ]) <= 'z' ) || ( (p[ 0 ]) >= 'A' && (p[ 0 ]) <= 'Z' ) ) ) || ( ( (p[ 0
> ]) >= '0' && (p[ 0 ]) <= '9' ) ) )' failed.
> Aborted
>
> ldapmodify crashes with:
> Enter LDAP Password:
> adding new entry "dc=com"
> ldapadd: update failed: dc=com
> ldap_add: Can't contact LDAP server (-1)
--
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it