Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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