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

TelephoneNumber syntax in DN creates an incorrect entry DN value

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.0
    • Fix Version/s: 7.0.0
    • Component/s: None
    • Story Points:
      0.5
    • Support Ticket IDs:

      Description

      Using an attribute with telephoneNumber syntax in DN creates incorrect entry DN. To reproduce - 

      Setup a new instance of DS

      Import the attached 99-user.ldif schema 

      Import the attached user ldif

      Search the user entry and note the entryDN is not correct.

       

      bin/ldapsearch -h localhost.localdomain -p 13899 -D "cn=Directory Manager" -w password -s sub -b 'o=example' "(msisdn=12345678912)" +
      dn: msisdn=12345678912,ou=users,ou=people,o=example
      entryDN: msisdn=#3132333435363738393132,ou=users,ou=people,o=example
      

       
      The DN on the server is stored incorrectly, returned incorrectly but presented correctly with DS ldapsearch tool. Other ldaptools (such as default OS ones) presents the DN as returned (and identical to the entryDN operational attribute).

      $ /usr/bin/ldapsearch -x -D cn=directory\ manager -w secret12 -p 1389 -h localhost -b o=example 'MSISDN=*'
      # extended LDIF
      #
      # LDAPv3
      # base <o=example> with scope subtree
      # filter: MSISDN=*
      # requesting: ALL
      #
      
      # #3132333435363738393132, example.com
      dn: msisdn=#3132333435363738393132,dc=example,dc=com
      objectClass: customer
      objectClass: top
      MSISDN: 12345678912
      
      # search result
      search: 2
      result: 0 Success
      
      # numResponses: 2
      # numEntries: 1
      

        Attachments

        1. 99-user.ldif
          1 kB
        2. test.ldif
          0.5 kB

          Issue Links

            Activity

              People

              • Assignee:
                ludo Ludovic Poitou
                Reporter:
                robert.matthews Robert Matthews
                QA Assignee:
                Ondrej Fuchsik
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: