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


if found bug in OpenLDAP 2.2.10 - slapd sigabort'ed on addition entry with wrong objectclass/attribute:

include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/nis.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/misc.schema
pidfile         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args
database        bdb
suffix          "dc=komi,dc=mts,dc=ru"
rootdn          "cn=ldapmanager,dc=komi,dc=mts,dc=ru"
rootpw          secret
directory       /var/db/openldap-data
index   objectClass     eq
loglevel -1

dn: cn=test,dc=komi,dc=mts,dc=ru
cn: test
objectClass: organizationalRole
objectClass: abcd
x: y
uid: test
loginShell: /bin/csh
uidNumber: 3000
gidNumber: 2513
homeDirectory: /home/test

# ldapadd test.ldif
Apr 21 13:37:00 kernel: pid 17416 (slapd), uid 389: exited on signal 6

Apr 21 13:06:37 slapd[17193]: bdb_dn2entry("cn=test,dc=komi,dc=mts,dc=ru") 
Apr 21 13:06:37 fec slapd[17193]: => bdb_dn2id( "cn=test,dc=komi,dc=mts,dc=ru" )
Apr 21 13:06:37 slapd[17193]: <= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30990)
Apr 21 13:06:37 slapd[17193]: bdb_referrals: op=104 target="cn=test,dc=komi,dc=mts,dc=ru" matched="dc=komi,dc=mts,dc=ru"

OpenLDAP 2.2.6 don't have this problem:

adding new entry "cn=test,dc=komi,dc=mts,dc=ru"
ldapadd: update failed: cn=test,dc=komi,dc=mts,dc=ru
ldap_add: Object class violation (65)
        additional info: unrecognized objectClass 'abcd'


ldapadd: update failed: cn=test,dc=komi,dc=mts,dc=ru
ldap_add: Undefined attribute type (17)
        additional info: x: attribute type undefined