You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ZhuMinghui (Jira)" <ji...@apache.org> on 2022/09/06 12:38:00 UTC

[jira] [Assigned] (IMPALA-11235) Support Pluggable Authentication for Impala

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

ZhuMinghui reassigned IMPALA-11235:
-----------------------------------

    Assignee: ZhuMinghui

> 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: Minor
>
> 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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org