Thanks Larry again.That's link I was looking for.I will follow your
proposal.Regards,Mohammad
On Thursday, November 3, 2016 6:47 PM, larry mccay <[email protected]>
wrote:
Hi Mohammad -
This may be of interest:
https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-PassingHTTPHeaderKey/ValuePairsviaJDBCDriver
You could certainly set SM_USER and SM_GROUPS through this.
Obviously, you would have to ensure that no one can spoof an authentication and
that you only accept such connections from trusted sources.I would suggest SSL
mutual authentication. See:
http://knox.apache.org/books/knox-0-9-1/user-guide.html#Mutual+Authentication+with+SSL
Hope that helps.
--larry
On Thu, Nov 3, 2016 at 8:29 PM, Mohammad Islam <[email protected]> wrote:
Hi ,I'm wandering if hive JDBC connection (say using beeline ) supports
HeaderPreAuth.
In general, preauth gets authenticated user name through http header.However,
I'm not sure how to pass HTTP header as part of JDBC URL. If the question is
not clear , I can explain it further.
Regards,Mohammad