Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-11362

Kerberos: Creating principals in AD when special characters are involved causes failures

    XMLWordPrintableJSON

Details

    Description

      Creating principals in AD when special characters are involved causes failures.

      The following characters in the CN need to be escaped:

      / , \ # + < > ; " =
      

      Note: javax.naming.ldap.Rdn will properly escape relative distinguished name parts.

      The following characters in the sAMAccountName need to be removed or replaced:

      [ ] : ; | = + * ? < > / \
      

      Note: This needs to be done explicitly within the attributes set if a relevant entry exists.

      // Replace the following _illegal_ characters: [ ] : ; | = + * ? < > / \
      value = value.toString().replaceAll("\\[|\\]|\\:|\\;|\\||\\=|\\+|\\*|\\?|\\<|\\>|\\/|\\\\", "_");
      

      Attachments

        1. AMBARI-11362_01.patch
          7 kB
          Robert Levas

        Activity

          People

            rlevas Robert Levas
            rlevas Robert Levas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: