[
https://issues.apache.org/jira/browse/IMPALA-11235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ZhuMinghui updated IMPALA-11235:
--------------------------------
Priority: Major (was: Minor)
> Support Pluggable Authentication for Impala
> -------------------------------------------
>
> Key: IMPALA-11235
> URL: https://issues.apache.org/jira/browse/IMPALA-11235
> Project: IMPALA
> Issue Type: Improvement
> Reporter: LiPenglin
> Assignee: ZhuMinghui
> Priority: Major
>
> 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:
> {code:java}
> bash /opt/impala/authz.sh{code}
> /opt/impala/authz.sh:
> {code:java}
> #!/bin/bash
>
> if [ $# -ne 2 ];
>
> then
>
> exit 1
>
> fi
>
> grep --quiet $1::$2 /opt/impala/passwd{code}
> /opt/impala/passwd:
> {code:java}
> user1::a1b1
> user2::c1d1{code}
> Just run this script for authentication at `ImpalaServer::OpenSession`:
> {code:java}
> // cmd = "bash /opt/impala/authz.sh user1 a1b1"
> impala::RunShellProcess(cmd, &msg, true, {"JAVA_TOOL_OPTIONS"}){code}
>
> Is this feasible? Any suggestions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]