Hello Jian Zhang, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/19042
to look at the new patch set (#3).
Change subject: IMPALA-11235: Support Pluggable Authentication for Impala
......................................................................
IMPALA-11235: Support Pluggable Authentication for Impala
When impala is accessed through the Standard JDBC Interface, I would like to
authenticate through a Unix command that return code indicates whether the
authenticate succeeded. The username and password are taken as the first and
second arguments to the command.
eg.
command:
bash /opt/impala/authz.sh
/opt/impala/authz.sh:
if [ $# -ne 2 ];
then
exit 1
fi
grep --quiet $1::$2 /opt/impala/passwd
/opt/impala/passwd:
user1::a1b1
user2::c1d1
Just run this script for authentication at `ImpalaServer::OpenSession`:
// cmd = "bash /opt/impala/authz.sh user1 a1b1"
impala::RunShellProcess(cmd, &msg, true, {"JAVA_TOOL_OPTIONS"})
Change-Id: Ieaaef6bffe641ece30e7fc3756688ef30722dfe1
---
M be/src/rpc/auth-provider.h
M be/src/rpc/authentication.cc
M be/src/transport/THttpServer.cpp
M be/src/transport/THttpServer.h
A bin/plugin_for_test.sh
A fe/src/test/java/org/apache/impala/customcluster/PluginHS2Test.java
A fe/src/test/java/org/apache/impala/customcluster/PluginImpalaShellTest.java
A fe/src/test/java/org/apache/impala/customcluster/PluginImpylaHttpTest.java
A fe/src/test/java/org/apache/impala/customcluster/PluginJdbcTest.java
A fe/src/test/java/org/apache/impala/testutil/PluginUtil.java
M shell/ImpalaHttpClient.py
M shell/impala_client.py
M shell/impala_shell.py
M shell/option_parser.py
M tests/shell/test_shell_commandline.py
15 files changed, 1,222 insertions(+), 32 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/42/19042/3
--
To view, visit http://gerrit.cloudera.org:8080/19042
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ieaaef6bffe641ece30e7fc3756688ef30722dfe1
Gerrit-Change-Number: 19042
Gerrit-PatchSet: 3
Gerrit-Owner: Minghui Zhu <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jian Zhang <[email protected]>