directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: [DIRKRB-255]-Kinit failed to get TGT from MIT's KDC server. Contributed by Wei.
Date Tue, 09 Jun 2015 06:32:10 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/master 386202239 -> 2f2e0ea78


[DIRKRB-255]-Kinit failed to get TGT from MIT's KDC server. Contributed by Wei.


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

Branch: refs/heads/master
Commit: 2f2e0ea788e5327c2efd2750b97b49e353b59b10
Parents: 3862022
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Tue Jun 9 14:37:11 2015 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Tue Jun 9 14:37:11 2015 +0800

----------------------------------------------------------------------
 .../org/apache/kerby/kerberos/kerb/client/request/AsRequest.java | 3 +++
 .../java/org/apache/kerby/kerberos/kerb/spec/pa/PaEncTsEnc.java  | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/2f2e0ea7/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/request/AsRequest.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/request/AsRequest.java
b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/request/AsRequest.java
index 073c2c8..5394b99 100644
--- a/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/request/AsRequest.java
+++ b/kerby-kerb/kerb-client/src/main/java/org/apache/kerby/kerberos/kerb/client/request/AsRequest.java
@@ -96,6 +96,9 @@ public class AsRequest extends KdcRequest {
 
         byte[] decryptedData = decryptWithClientKey(getKdcRep().getEncryptedEncPart(),
                 KeyUsage.AS_REP_ENCPART);
+        if ((decryptedData[0] & 0x1f) == 26) {
+            decryptedData[0] = (byte) (decryptedData[0] - 1);
+        }
         EncKdcRepPart encKdcRepPart = new EncAsRepPart();
         try {
             encKdcRepPart.decode(decryptedData);

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/2f2e0ea7/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/pa/PaEncTsEnc.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/pa/PaEncTsEnc.java
b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/pa/PaEncTsEnc.java
index b6407a8..410f9ac 100644
--- a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/pa/PaEncTsEnc.java
+++ b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/pa/PaEncTsEnc.java
@@ -35,8 +35,8 @@ public class PaEncTsEnc extends KrbSequenceType {
     private static int PAUSEC = 1;
 
     static Asn1FieldInfo[] fieldInfos = new Asn1FieldInfo[] {
-            new Asn1FieldInfo(PATIMESTAMP, 1, KerberosTime.class),
-            new Asn1FieldInfo(PAUSEC, 2, Asn1Integer.class)
+            new Asn1FieldInfo(PATIMESTAMP, 0, KerberosTime.class),
+            new Asn1FieldInfo(PAUSEC, 1, Asn1Integer.class)
     };
 
     public PaEncTsEnc() {


Mime
View raw message