From 2e7d691c03caa6eaa1d170b2ab03265a65ff12f2 Mon Sep 17 00:00:00 2001 From: captainzmc Date: Sun, 13 Oct 2019 09:42:23 +0200 Subject: [PATCH] [LIVY-356][SERVER] Add LDAP authentication for livy-server. ## What changes were proposed in this pull request? Currently, livy-server doesn't support LDAP Authentication from client to server(livy). We need to add LDAP authentication as that's preferable method due to security reasons. Here we reimplement LdapAuthenticationHandle, which is new in hadoop2.8+. ## How was this patch tested? UTs tests for this part have been added. We can test in UTs Author: captainzmc Author: Janki Akhani Closes #231 from captainzmc/add-ldap. --- pom.xml | 4 + server/pom.xml | 43 ++++ .../main/scala/org/apache/livy/LivyConf.scala | 7 + .../org/apache/livy/server/LivyServer.scala | 21 ++ .../auth/LdapAuthenticationHandlerImpl.scala | 219 ++++++++++++++++++ .../TestLdapAuthenticationHandlerImpl.scala | 156 +++++++++++++ 6 files changed, 450 insertions(+) create mode 100644 server/src/main/scala/org/apache/livy/server/auth/LdapAuthenticationHandlerImpl.scala create mode 100644 server/src/test/scala/org/apache/livy/server/auth/TestLdapAuthenticationHandlerImpl.scala diff --git a/pom.xml b/pom.xml index fa1600d35..5bcf1a3c8 100644 --- a/pom.xml +++ b/pom.xml @@ -121,6 +121,10 @@ false + + 2.0.0-M21 + 1.0.0-M33 +