equal
deleted
inserted
replaced
33 |
33 |
34 public class BadKdc2 { |
34 public class BadKdc2 { |
35 |
35 |
36 public static void main(String[] args) |
36 public static void main(String[] args) |
37 throws Exception { |
37 throws Exception { |
38 Security.setProperty("krb5.kdc.bad.policy", "tryLess:2,1000"); |
38 |
|
39 // 1 sec is too short. |
|
40 BadKdc.setRatio(3.0f); |
|
41 |
|
42 Security.setProperty( |
|
43 "krb5.kdc.bad.policy", "tryLess:2," + BadKdc.toReal(1000)); |
39 BadKdc.go( |
44 BadKdc.go( |
40 "121212222222(32){1,2}11112121(32){1,2}", // 1 2 |
45 "121212222222(32){1,2}11112121(32){1,2}", // 1 2 |
41 "11112121(32){1,2}11112121(32){1,2}", // 1 2 |
46 "11112121(32){1,2}11112121(32){1,2}", // 1 2 |
42 // refresh |
47 // refresh |
43 "121212222222(32){1,2}11112121(32){1,2}", // 1 2 |
48 "121212222222(32){1,2}11112121(32){1,2}", // 1 2 |