jdk/test/sun/security/krb5/auto/DynamicKeytab.java
changeset 14895 5ad2d7032375
parent 9542 6f715a596a2e
child 15006 10d6aacdd67f
--- a/jdk/test/sun/security/krb5/auto/DynamicKeytab.java	Sat Dec 15 15:07:35 2012 +0000
+++ b/jdk/test/sun/security/krb5/auto/DynamicKeytab.java	Mon Dec 17 12:18:46 2012 +0800
@@ -110,11 +110,13 @@
             throw new Exception("Should not success");
         } catch (GSSException gsse) {
             System.out.println(gsse);
-            KrbException ke = (KrbException)gsse.getCause();
-            if (ke.returnCode() != Krb5.KRB_AP_ERR_BADKEYVER) {
-                throw new Exception("Not expected failure code: " +
-                        ke.returnCode());
-            }
+            // Since 7197159, different kvno is accepted, this return code
+            // will never be thrown out again.
+            //KrbException ke = (KrbException)gsse.getCause();
+            //if (ke.returnCode() != Krb5.KRB_AP_ERR_BADKEYVER) {
+            //    throw new Exception("Not expected failure code: " +
+            //            ke.returnCode());
+            //}
         }
 
         // Test 8: an empty KDC means revoke all