Full_Name: Denis Benoit
Version: 2.4.8
OS: RedHat enterprise 5
URL: 
Submission from: (NULL) (64.254.229.130)


I tried to load a slapcat dump from OpenLDAP 2.3.27 into OpenLDAP 2.4.8,
and had problems with java entries. I narrowed down the problem with
this simple test case:

LDIF:
        dn: cn=REQ,dc=example,dc=com
        javaClassName: Toto
        objectClass: javaContainer
        objectClass: javaObject
        objectClass: javaNamingReference
        javaFactory: TotoFactory
        cn: REQ
        javaReferenceAddress: #0#VER#1

Load of this LDIF in OpenLDAP 2.3.27:

        ldapadd -D"cn=Manager,dc=example,dc=com" -W -x -f /tmp/bug.ldif
        Enter LDAP Password:
        adding new entry "cn=REQUEST,dc=example,dc=com"

Works, but in OpenLDAP 2.4.8:

        ldapadd -h myserver -p 1389 -D"cn=Manager,dc=example,dc=com" -W -x -f
/tmp/bug.ldif
        Enter LDAP Password:
        adding new entry "cn=REQUEST,dc=example,dc=com"
        ldap_add: Object class violation (65)
                additional info: instanstantiation of abstract objectClass 
'javaObject' not
allowed

And the entry is not loaded.


Reply via email to