test/jdk/sun/security/krb5/auto/KdcPolicy.java
changeset 49276 3acb379b8672
parent 48668 2da4a52715d8
equal deleted inserted replaced
49275:c639a6b33c5c 49276:3acb379b8672
    98         cm.addPort(-1).addPort(p1).addPort(p2).addPort(p3);
    98         cm.addPort(-1).addPort(p1).addPort(p2).addPort(p3);
    99 
    99 
   100         System.setProperty("java.security.krb5.conf", "alternative-krb5.conf");
   100         System.setProperty("java.security.krb5.conf", "alternative-krb5.conf");
   101 
   101 
   102         // Check default timeout is 30s. Use real KDC only, otherwise too
   102         // Check default timeout is 30s. Use real KDC only, otherwise too
   103         // slow to wait for timeout.
   103         // slow to wait for timeout. Each request (without preauth and with
       
   104         // preauth) might be retried 3 times, and could fail if one fails for
       
   105         // all 3 times.
   104         writeConf(-1, -1, p3);
   106         writeConf(-1, -1, p3);
   105         test("c30000c30000");
   107         test("(c30000){2,6}|(c30000){3,6}-");
   106 
   108 
   107         // 1. Default policy is tryLast
   109         // 1. Default policy is tryLast
   108         //Security.setProperty("krb5.kdc.bad.policy", "tryLast");
   110         //Security.setProperty("krb5.kdc.bad.policy", "tryLast");
   109 
   111 
   110         // Need a real KDC, otherwise there is no last good.
   112         // Need a real KDC, otherwise there is no last good.