Skip to main content
Steve206
Gold ⭐️
March 4, 2019
Solved

HiveServer2, is StartTLS an option for user authentication using OpenLDAP?

Hi all,

 

Currently using CDH 5.14.4 and looking to enable user authention on HiveServer2 using OpenLDAP. The two connection options I'm seeing are LDAP and LDAPS, but we currently don't have LDAPS configured with our OpenLDAP server. Hue supports LDAP with StartTLS so I figured Hive would too. I'm wondering if StartTLS is an option that I'm not finding documentation for or if its not supported. 

 

Thanks for your help!

 

 

Harsh J
Harsh JAnswer
Gold ⭐️⭐️
March 7, 2019
Currently Hive's connections to LDAP do not support the StartTLS extension [1]. This does make sense as a feature request however, could you log your request over at https://issues.apache.org/jira/projects/HIVE please?

[1] - https://github.com/apache/hive/blob/master/service/src/java/org/apache/hive/service/auth/ldap/LdapSearchFactory.java#L52-L62

4 replies

Consult
Gold ⭐️
March 6, 2019

Hello @Steve206,

 

Yup, you are right mate. Most of the documentation that I came across talks about ldaps implementation support for hs2.

 

Thinking loud here.. hypothetically if there was an option and with above setup of no-ssl on ad server. starttls secure connection neg. will fail anyways and it will be a standard connection.

 

There is an option to write pluggable class and then set authentication to custom.

 

Hope that helps.

Translate
Harsh J
Gold ⭐️⭐️
Harsh JAnswer
Gold ⭐️⭐️
March 7, 2019
Currently Hive's connections to LDAP do not support the StartTLS extension [1]. This does make sense as a feature request however, could you log your request over at https://issues.apache.org/jira/projects/HIVE please?

[1] - https://github.com/apache/hive/blob/master/service/src/java/org/apache/hive/service/auth/ldap/LdapSearchFactory.java#L52-L62
Translate
Steve206
Steve206Author
Gold ⭐️
March 7, 2019

Thank you for the confirmation. Yes, I'll make a feature request.

Translate