Csaba Ringhofer created IMPALA-13746:
----------------------------------------
Summary: 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
Found this while checking if impyla fix
https://github.com/cloudera/impyla/pull/562 is also relevant for impala-shell.
To reproduce:
{close}
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)