You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "pan3793 (via GitHub)" <gi...@apache.org> on 2023/03/08 07:06:18 UTC
[GitHub] [kyuubi] pan3793 commented on pull request #4479: Restore JDBC Kerberos authentication behavior for UGI.doAs
pan3793 commented on PR #4479:
URL: https://github.com/apache/kyuubi/pull/4479#issuecomment-1459639998
Have a offline talk w/ @gabrywu, this PR fixed the original issue but also brings a new one, considering the following case, the `clientPrincipal` and `clientKeytab` will be totally ignored and always respect UGI, personally I think it's an acceptable result, but would like to know other guys thoughts.
cc @cxzl25 @zhouyifan279 @turboFei
```
UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
ugi.doAs(() -> {
Connection conn = DriverManager.getConnection(
"jdbc:kyuubi://host:10009/default;principal=kyuubi@_HOST/ABC.ORG;" +
"clientPrincipal=tom@_HOST/ABC.ORG;clientKeytab=/path/xxx.keytab");
...
});
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org