equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 7152176 8194486 |
26 * @bug 7152176 8194486 8201627 |
27 * @summary More krb5 tests |
27 * @summary More krb5 tests |
28 * @library /test/lib |
28 * @library /test/lib |
29 * @compile -XDignore.symbol.file Basic.java |
29 * @compile -XDignore.symbol.file Basic.java |
30 * @run main jdk.test.lib.FileInstaller TestHosts TestHosts |
30 * @run main jdk.test.lib.FileInstaller TestHosts TestHosts |
31 * @run main/othervm -Djdk.net.hosts.file=TestHosts Basic |
31 * @run main/othervm -Djdk.net.hosts.file=TestHosts Basic |
|
32 * @run main/othervm -Djdk.net.hosts.file=TestHosts |
|
33 * -Dsun.security.krb5.acceptor.sequence.number.nonmutual=zero |
|
34 * Basic |
32 */ |
35 */ |
33 |
36 |
34 import sun.security.jgss.GSSUtil; |
37 import sun.security.jgss.GSSUtil; |
35 |
38 |
36 // The basic krb5 test skeleton you can copy from |
39 // The basic krb5 test skeleton you can copy from |
45 s = Context.fromJAAS("server"); |
48 s = Context.fromJAAS("server"); |
46 b = Context.fromJAAS("backend"); |
49 b = Context.fromJAAS("backend"); |
47 |
50 |
48 c.startAsClient(OneKDC.SERVER, GSSUtil.GSS_KRB5_MECH_OID); |
51 c.startAsClient(OneKDC.SERVER, GSSUtil.GSS_KRB5_MECH_OID); |
49 c.x().requestCredDeleg(true); |
52 c.x().requestCredDeleg(true); |
|
53 c.x().requestMutualAuth(false); |
50 s.startAsServer(GSSUtil.GSS_KRB5_MECH_OID); |
54 s.startAsServer(GSSUtil.GSS_KRB5_MECH_OID); |
51 |
55 |
52 Context.handshake(c, s); |
56 Context.handshake(c, s); |
53 |
57 |
54 Context.transmit("i say high --", c, s); |
58 Context.transmit("i say high --", c, s); |