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

Invalid attribute syntax behavior fails to reject non-boolean syntax values

    Details

    • Support Ticket IDs:
    • Sprint:
      DJ Sustaining Sprint 23

      Description

      OpenDJ allows entries to be added with non-boolean values even with invalid-attribute-syntax-behavior:reject set.

      ./dsconfig get-global-configuration-prop --no-prompt --trustAll --bindDN "cn=Directory Manager" --bindPasswordFile pass --port 4444 --hostname opendj.forgerock.com --advanced | grep syntax
      
      invalid-attribute-syntax-behavior      : reject
      
      dn: corpid=testid2,ou=People,dc=example,dc=com
      corpBoolean: NOTBOOLEAN
      cn: CTEST
      objectClass: top
      objectClass: person
      objectClass: organizationalPerson
      objectClass: inetorgperson
      objectClass: corporatePerson
      givenName: TEST
      sn: TEST
      uid: testid2
      
      opendj; bin/$ ./add-user 
      Processing ADD request for corpid=testid2,ou=People,dc=example,dc=com
      ADD operation successful for DN corpid=testid2,ou=People,dc=example,dc=com
      

      It should error out as follows

      "corpid=testid2,ou=People,dc=example,dc=com"
      contains a value "NOTBOOLEAN" for attribute corpBoolean that is invalid according to the syntax for that attribute: The provided value "NOTBOOLEAN" is not allowed for attributes with a Boolean syntax.  The only allowed values are 'TRUE' and 'FALSE'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ian.packer Ian Packer [X] (Inactive)
                Reporter:
                lee.trujillo Lee Trujillo
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: