[ 
https://issues.apache.org/jira/browse/IMPALA-13746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Csaba Ringhofer resolved IMPALA-13746.
--------------------------------------
    Fix Version/s: Impala 5.0.0
                   Impala 4.5.1
       Resolution: Fixed

> impala-shell handles long ldap passwords incorrectly
> ----------------------------------------------------
>
>                 Key: IMPALA-13746
>                 URL: https://issues.apache.org/jira/browse/IMPALA-13746
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Clients
>            Reporter: Csaba Ringhofer
>            Assignee: Csaba Ringhofer
>            Priority: Critical
>              Labels: ramp-up
>             Fix For: Impala 5.0.0, Impala 4.5.1
>
>
> Found this while checking if impyla fix 
> https://github.com/cloudera/impyla/pull/562 is also relevant for impala-shell.
> To reproduce:
> {code}
> python shell/impala_shell.py --protocol=hs2-http --ldap 
> --ldap_password_cmd="echo verylongpasswordthatcreatesalongbasic64encodin" 
> --auth_creds_ok_in_clear
> 2025-02-10 15:21:30 [Exception] type=<class 'ValueError'> in OpenSession. Num 
> remaining tries: 3 Invalid header value b'Basic 
> Y3NyaW5naG9mZXI6dmVyeWxvbmdwYXNzd29yZHRoYXRjcmVhdGVzYWxvbmdiYXNpYzY0ZW5jb2Rp\nbgo='
> {code}
> The problem comes from the \n added during base64 encoding.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to