Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-12403

Kerberos authentication fails when connecting with a proxy user that passes LDAP user and group filters but does not delegate another user

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.3.0
    • Backend
    • None
    • ghx-label-1

    Description

      When connecting with a proxy user without doAs request parameter or impala.doas.user connection config then the filters are executed with the authenticated user itself, however, in case of Kerberos auth, the authenticated user is a Kerberos user principal which will definitely not pass the LDAP checks, because LDAP filters here need to be checked with a short username (that needs to be extracted from the Kerberos user principal).
      During the Kerberos authentication process, the short username is checked ( see https://github.com/apache/impala/blob/master/be/src/rpc/authentication.cc#L757-L764), , the only point where it doesn't work like that is this: https://github.com/apache/impala/blob/master/be/src/service/impala-hs2-server.cc#L394-L403
      https://github.com/apache/impala/blob/master/be/src/util/auth-util.cc#L43-L52 

      Attachments

        Activity

          People

            gfarkas Gergely Farkas
            gfarkas Gergely Farkas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: