Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-2738

DN validation fails when RDN uses a custom attribute

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.5.0, 4.0.0
    • Component/s: core server
    • Environment:
      java version "1.7.0_79"
      Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

      CentOS release 6.7 (Final)

      Description

      I use the following simple custom schema in OpenDJ 3:

      dn: cn=schema
      objectClass: top
      objectClass: ldapSubentry
      objectClass: subschema
      cn: schema
      attributeTypes: ( 1.2.3.4.5.6 NAME 'orgOID'  EQUALITY 2.5.13.2 ORDERING 2.5.13.3 SUBSTR 2.5.13.4 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 USAGE userApplications X-APPROX '1.3.6.1.4.1.26027.1.4.1' )
      attributeTypes: ( 1.2.3.4.5.7 NAME 'associateoid'  EQUALITY 2.5.13.2 ORDERING 2.5.13.3 SUBSTR 2.5.13.4 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 USAGE userApplications X-APPROX '1.3.6.1.4.1.26027.1.4.1' )
      objectClasses: ( Customerorganization-oid NAME 'Customerorganization'  SUP ( 2.5.6.4 ) STRUCTURAL MUST ( 1.2.3.4.5.6 ))
      objectClasses: ( Customerassociate-oid NAME 'Customerassociate'  SUP ( 2.16.840.1.113730.3.2.2 ) STRUCTURAL MUST ( 1.2.3.4.5.7 ) MAY ( 1.2.3.4.5.6 ))
      

      I'm able to create users such as the one shown below:

      dn: associateoid=test,orgOID=FR200511241553638,ou=clients,o=customer
      changetype: add
      objectClass: Customerassociate
      objectClass: inetOrgPerson
      objectClass: organizationalPerson
      objectClass: person
      objectClass: top
      sn: test
      cn: test
      associateoid: test
      

      However, when I try to add such a user to a groupOfEntries entry, it fails with the error below:

      dn: cn=wsit,ou=services,o=customer
      changetype: modify
      add: member
      member: associateoid=test,orgOID=FR200511241553638,ou=clients,o=customer
      
      #!ERROR [LDAP: error code 21 - When attempting to modify entry cn=wsit,ou=services,o=customer to add one or more values for attribute member, value "associateoid=test,orgOID=FR200511241553638,ou=clients,o=customer" was found to be invalid according to the associated syntax: The DN "associateoid=test,orgOID=FR200511241553638,ou=clients,o=customer" could not be parsed due to the following reason: No attribute type with name or OID "associateoid" exists in the schema]
      

      Obviously, the associateoid attribute exists in the schema so the new member should be accepted.

      Currently, the workaround is to change the OpenDJ configuration to relax the schema:

      dsconfig set-global-configuration-prop --set invalid-attribute-syntax-behavior:warn --no-prompt

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              JnRouvignac Jean-Noël Rouvignac
              Reporter:
              cgrosjean Cyril Grosjean
              QA Assignee:
              Ondrej Fuchsik Ondrej Fuchsik
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: