Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12751

While using kerberos Hadoop incorrectly assumes names with '@' to be non-simple



    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.7.2
    • 2.8.0, 3.0.0-alpha1, 2.7.6
    • security
    • kerberos

    • Reviewed


      In the scenario of a trust between two directories, eg. FreeIPA (ipa.local) and Active Directory (ad.local) users can be made available on the OS level by something like sssd. The trusted users will be of the form 'user@ad.local' while other users are will not contain the domain. Executing 'id -Gn user@ad.local' will successfully return the groups the user belongs to if configured correctly.

      However, it is assumed by Hadoop that users of the format with '@' cannot be correct. This code is in KerberosName.java and seems to be a validator if the 'auth_to_local' rules are applied correctly.

      In my opinion this should be removed or changed to a different kind of check or maybe logged as a warning while still proceeding, as the current behavior limits integration possibilities with other standard tools.

      Workaround are difficult to apply (by having a rewrite by system tools to for example user_ad_local) due to down stream consequences.


        1. 0001-HADOOP-12751-leave-user-validation-to-os.patch
          2 kB
          Bolke de Bruin
        2. 0002-HADOOP-12751-leave-user-validation-to-os.patch
          3 kB
          Bolke de Bruin
        3. 0003-HADOOP-12751-leave-user-validation-to-os.patch
          4 kB
          Bolke de Bruin
        4. 0004-HADOOP-12751-leave-user-validation-to-os.patch
          5 kB
          Bolke de Bruin
        5. 0001-Remove-check-for-user-name-characters-and.patch
          5 kB
          Bolke de Bruin
        6. 0005-HADOOP-12751-leave-user-validation-to-os.patch
          10 kB
          Bolke de Bruin
        7. 0006-HADOOP-12751-leave-user-validation-to-os.patch
          12 kB
          Bolke de Bruin
        8. 0007-HADOOP-12751-leave-user-validation-to-os.patch
          13 kB
          Bolke de Bruin
        9. 0007-HADOOP-12751-leave-user-validation-to-os.patch
          13 kB
          Bolke de Bruin
        10. 0008-HADOOP-12751-leave-user-validation-to-os.patch
          13 kB
          Bolke de Bruin
        11. 0008-HADOOP-12751-leave-user-validation-to-os.patch
          13 kB
          Bolke de Bruin
        12. HADOOP-12751-009.patch
          13 kB
          Steve Loughran
        13. HADOOP-12751-branch-2.7.009.patch
          7 kB
          Konstantin Shvachko

        Issue Links



              bolke Bolke de Bruin
              bolke Bolke de Bruin
              0 Vote for this issue
              15 Start watching this issue