Forward slashes not escaped correctly in DNs etc.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 2.5.1
    • Affects Version/s: 2.0.7
    • Component/s: Directory - LDAP
    • None

      Forward slashes, "/", cause a variety of failures when included in DNs and User and Group Names.

      Specific cases are:

      • Adding a User or adding a Group fails when the user or group contains a "/". The failure occurs before the actual create when the system is checking to see if the user already exists. If the user or group already exists in LDAP with a name containing a slash then all other operations, e.g. authenticate & search, seem to work OK.
      • When a search is performed against a DN that contains a "/" it fails with an error such as :
        javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'ou=kelpie/berrima,dc=example,dc=com'
        

        This can be worked around by manually escaping the slash in the DN attribute e.g. ou=kelpie\2Fberrima,dc=example,dc=com

      All these tests were run against OpenLDAP.

            Assignee:
            Diego Berrueta
            Reporter:
            Trevor Campbell (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: