hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sunc...@apache.org
Subject hive git commit: HIVE-10573 - Improve Hive service for connection (Chao, reviewed by Thejas)
Date Sat, 02 May 2015 00:10:50 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-1.0 744d93a54 -> 5a9fddb23


HIVE-10573 - Improve Hive service for connection (Chao, reviewed by Thejas)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/5a9fddb2
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/5a9fddb2
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/5a9fddb2

Branch: refs/heads/branch-1.0
Commit: 5a9fddb23f9262b88e1f9a6783a5a703c3fcbe22
Parents: 744d93a
Author: Chao Sun <sunchao@apache.org>
Authored: Fri May 1 17:10:15 2015 -0700
Committer: Chao Sun <sunchao@apache.org>
Committed: Fri May 1 17:10:15 2015 -0700

----------------------------------------------------------------------
 .../hive/service/auth/LdapAuthenticationProviderImpl.java       | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/5a9fddb2/service/src/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java
b/service/src/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java
index d075761..ed0ee44 100644
--- a/service/src/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java
+++ b/service/src/java/org/apache/hive/service/auth/LdapAuthenticationProviderImpl.java
@@ -51,6 +51,11 @@ public class LdapAuthenticationProviderImpl implements PasswdAuthenticationProvi
       user = user + "@" + ldapDomain;
     }
 
+    if (password == null || password.isEmpty() || password.getBytes()[0] == 0) {
+      throw new AuthenticationException("Error validating LDAP user:" +
+          " a null or blank password has been provided");
+    }
+
     // setup the security principal
     String bindDN;
     if (baseDN == null) {


Mime
View raw message