directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dran...@apache.org
Subject directory-kerby git commit: Fixed an issue that exported keytab lacking of kvno
Date Fri, 26 Jun 2015 06:49:30 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/master 9019cd157 -> bc2d6771e


Fixed an issue that exported keytab lacking of kvno


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

Branch: refs/heads/master
Commit: bc2d6771e640d83a1ffb3684a6a3e495a6706c86
Parents: 9019cd1
Author: Drankye <drankye@gmail.com>
Authored: Fri Jun 26 22:47:31 2015 +0800
Committer: Drankye <drankye@gmail.com>
Committed: Fri Jun 26 22:47:31 2015 +0800

----------------------------------------------------------------------
 .gitignore                                                      | 2 ++
 .../org/apache/kerby/kerberos/kerb/common/EncryptionUtil.java   | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/bc2d6771/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 7122ecb..20ace49 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,5 @@ log.txt
 kerby-server
 .pmd
 .pmdruleset.xml
+kerby-dist/kdc-dist/lib/
+kerby-dist/tool-dist/lib/

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/bc2d6771/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/EncryptionUtil.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/EncryptionUtil.java
b/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/EncryptionUtil.java
index 06e2bea..9fa41ff 100644
--- a/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/EncryptionUtil.java
+++ b/kerby-kerb/kerb-common/src/main/java/org/apache/kerby/kerberos/kerb/common/EncryptionUtil.java
@@ -91,6 +91,7 @@ public class EncryptionUtil {
                 new ArrayList<EncryptionKey>(encryptionTypes.size());
         for (EncryptionType eType : encryptionTypes) {
             EncryptionKey encKey = EncryptionHandler.random2Key(eType);
+            encKey.setKvno(1);
             results.add(encKey);
         }
 
@@ -102,7 +103,9 @@ public class EncryptionUtil {
             List<EncryptionType> encryptionTypes) throws KrbException {
         List<EncryptionKey> results = new ArrayList<EncryptionKey>(encryptionTypes.size());
         for (EncryptionType eType : encryptionTypes) {
-            EncryptionKey encKey = EncryptionHandler.string2Key(principal, passwd, eType);
+            EncryptionKey encKey = EncryptionHandler.string2Key(
+                principal, passwd, eType);
+            encKey.setKvno(1);
             results.add(encKey);
         }
 


Mime
View raw message