knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject knox git commit: KNOX-910 - Move from SHA-1 to SHA-256 (Jeffrey E Rodriguez via Sandeep More)
Date Mon, 27 Mar 2017 18:07:55 GMT
Repository: knox
Updated Branches:
  refs/heads/master 65ca3c109 -> ba4ddecec


KNOX-910 - Move from SHA-1 to SHA-256 (Jeffrey E Rodriguez via Sandeep More)


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

Branch: refs/heads/master
Commit: ba4ddecec1f84ccf62e18bf54996abbaa212d0ce
Parents: 65ca3c1
Author: Sandeep More <more@apache.org>
Authored: Mon Mar 27 14:07:20 2017 -0400
Committer: Sandeep More <more@apache.org>
Committed: Mon Mar 27 14:07:20 2017 -0400

----------------------------------------------------------------------
 .../java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealm.java   | 2 +-
 .../java/org/apache/hadoop/gateway/shirorealm/KnoxPamRealm.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/ba4ddece/gateway-provider-security-shiro/src/main/java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealm.java
----------------------------------------------------------------------
diff --git a/gateway-provider-security-shiro/src/main/java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealm.java
b/gateway-provider-security-shiro/src/main/java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealm.java
index 0952870..d57964d 100644
--- a/gateway-provider-security-shiro/src/main/java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealm.java
+++ b/gateway-provider-security-shiro/src/main/java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealm.java
@@ -148,7 +148,7 @@ public class KnoxLdapRealm extends JndiLdapRealm {
 
     private static final String POSIX_GROUP = "posixGroup";
 
-    private static final String HASHING_ALGORITHM = "SHA-1";
+    private static final String HASHING_ALGORITHM = "SHA-256";
 
     static {
           SUBTREE_SCOPE.setSearchScope(SearchControls.SUBTREE_SCOPE);

http://git-wip-us.apache.org/repos/asf/knox/blob/ba4ddece/gateway-provider-security-shiro/src/main/java/org/apache/hadoop/gateway/shirorealm/KnoxPamRealm.java
----------------------------------------------------------------------
diff --git a/gateway-provider-security-shiro/src/main/java/org/apache/hadoop/gateway/shirorealm/KnoxPamRealm.java
b/gateway-provider-security-shiro/src/main/java/org/apache/hadoop/gateway/shirorealm/KnoxPamRealm.java
index 6e103ba..45cdd45 100644
--- a/gateway-provider-security-shiro/src/main/java/org/apache/hadoop/gateway/shirorealm/KnoxPamRealm.java
+++ b/gateway-provider-security-shiro/src/main/java/org/apache/hadoop/gateway/shirorealm/KnoxPamRealm.java
@@ -80,7 +80,7 @@ import org.jvnet.libpam.UnixUser;
  */
 
 public class KnoxPamRealm extends AuthorizingRealm {
-  private static final String HASHING_ALGORITHM = "SHA-1";
+  private static final String HASHING_ALGORITHM = "SHA-256";
   private static final String SUBJECT_USER_ROLES = "subject.userRoles";
   private static final String SUBJECT_USER_GROUPS = "subject.userGroups";
   private HashService hashService = new DefaultHashService();


Mime
View raw message