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: DIRKRB-211 Using MIT klist tool can't list the tickets in the credentials cache generated by kerby's kinit. Contributed by Jiajia
Date Wed, 08 Apr 2015 06:27:46 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/master b73d5116d -> d66789da8


DIRKRB-211 Using MIT klist tool can't list the tickets in the credentials cache generated
by kerby's kinit. Contributed by Jiajia


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

Branch: refs/heads/master
Commit: d66789da8775b033fa136ec91ed315b9a3e58855
Parents: b73d511
Author: Drankye <drankye@gmail.com>
Authored: Wed Apr 8 22:25:05 2015 +0800
Committer: Drankye <drankye@gmail.com>
Committed: Wed Apr 8 22:25:05 2015 +0800

----------------------------------------------------------------------
 .../kerby/kerberos/kerb/ccache/CredCacheOutputStream.java       | 2 +-
 .../org/apache/kerby/kerberos/kerb/ccache/CredentialCache.java  | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/d66789da/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/CredCacheOutputStream.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/CredCacheOutputStream.java
b/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/CredCacheOutputStream.java
index ceba3ec..ee8ca3d 100644
--- a/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/CredCacheOutputStream.java
+++ b/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/CredCacheOutputStream.java
@@ -79,7 +79,7 @@ public class CredCacheOutputStream extends KrbOutputStream
             writeInt(0);
         } else {
             List<HostAddress> addresses = addrs.getElements();
-            write(addresses.size());
+            writeInt(addresses.size());
             for (HostAddress addr : addresses) {
                 writeAddress(addr);
             }

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/d66789da/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/CredentialCache.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/CredentialCache.java
b/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/CredentialCache.java
index 5eedde1..75b2bab 100644
--- a/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/CredentialCache.java
+++ b/kerby-kerb/kerb-util/src/main/java/org/apache/kerby/kerberos/kerb/ccache/CredentialCache.java
@@ -172,8 +172,9 @@ public class CredentialCache implements KrbCredentialCache
 
     private void doLoad(CredCacheInputStream ccis) throws IOException {
         this.version = readVersion(ccis);
-
-        this.tags = readTags(ccis);
+        if (version == FCC_FVNO_4) {
+            this.tags = readTags(ccis);
+        }
 
         this.primaryPrincipal = ccis.readPrincipal(version);
 


Mime
View raw message