Created on 02-10-2016 09:05 PM - edited 08-17-2019 01:16 PM
The documentation is straight forward BUT based on my experience, we always end up some kind of LDAP error messages.
This article is walking through the Hive and LDAP integration.
HDP 2.3.4
Ambari 2.2
Security workshop was used to setup the openLDPA
Most important:
2016-02-10 08:02:50,705 ERROR [HiveServer2-Handler-Pool: Thread-39]: transport.TSaslTransport (TSaslTransport.java:open(315)) - SASL negotiation failure
javax.security.sasl.SaslException: Error validating the login [Caused by javax.security.sasl.AuthenticationException: Error validating LDAP user [Caused by javax.naming.AuthenticationException: [LDAP: error code 32 - No Such Object]]]
at org.apache.hive.service.auth.PlainSaslServer.evaluateResponse(PlainSaslServer.java:109)
I kept hitting the above error because of wrong baseDN
Correct setting:
Test:
Created on 06-02-2016 02:33 PM
Thanks Neeraj!
I also set up LDAP through freeIPA service and configured LDAP in Hive in Ambari. Below links helped me a lot to do the setup.
https://github.com/hortonworks-gallery/ambari-freeipa-service
https://github.com/abajwa-hw/security-workshops/blob/master/Setup-Ambari.md#authentication-via-ldap
** If you installed LDAP through freeIPA link given above, you have to set baseDN as “cn=users,cn=accounts,dc=hortonworks,dc=com” in Ambari Properties.
One can try ldap search command "ldapsearch -h localhost:389 -w hortonworks -x -b 'dc=hortonworks,dc=com' uid=ali" after successful LDAP configuration.
User | Count |
---|---|
763 | |
379 | |
316 | |
309 | |
270 |