Searched refs:KDC (Results 1 - 18 of 18) sorted by relevance

/openjdk7/jdk/test/sun/security/krb5/auto/
H A DNewSalt.java41 // Create and start the KDC
42 KDC kdc = new OneKDC(null);
44 KDC.saveConfig(OneKDC.KRB5_CONF, kdc,
47 kdc.setOption(KDC.Option.ONLY_ONE_PREAUTH, true);
50 kdc.setOption(KDC.Option.PREAUTH_REQUIRED, false);
53 // Use a different case of name. KDC will return correct salt
H A DTwoPrinces.java42 KDC k1 = KDC.create("R1");
47 KDC k2 = KDC.create("R2");
55 KDC.saveConfig("krb5.conf", k1, k2);
93 KDC.saveConfig("krb5.conf", k2, k1);
H A DOkAsDelegateXRealm.java52 KDC kdc1 = KDC.create("R1");
59 KDC kdc2 = KDC.create("R2");
66 KDC kdc3 = KDC.create("R3");
73 KDC.saveConfig("krb5-localkdc.conf", kdc1, kdc2, kdc3,
H A DCrossRealm.java51 // Create and start the KDC
52 KDC kdc1 = KDC.create("RABBIT.HOLE");
58 KDC kdc2 = KDC.create("SNAKE.HOLE");
64 KDC.saveConfig("krb5-localkdc.conf", kdc1, kdc2,
H A DTcpTimeout.java44 KDC k = new KDC(OneKDC.REALM, OneKDC.KDCHOST, p3, true);
112 private static KDC on(int p) throws Exception {
113 KDC k = new KDC(OneKDC.REALM, OneKDC.KDCHOST, p, true);
H A DW83.java47 KDC kdc = new KDC(OneKDC.REALM, "127.0.0.1", 0, true);
50 KDC.saveConfig(OneKDC.KRB5_CONF, kdc);
69 kdc.setOption(KDC.Option.ONLY_RC4_TGT, true);
74 kdc.setOption(KDC.Option.RC4_FIRST_PREAUTH, true);
H A DBadKdc.java48 * prevent this happening, coz krb5.conf must be written before KDC starts.
51 * a. Cannot start the KDC. A BindException thrown.
52 * b. When trying to access a non-existing KDC, a response is received!
55 * 2. Even if a KDC is started, and more than 20 seconds pass by, a timeout
56 * can still happens for the first UDP request. In fact, the KDC did not
68 * c. Feed the KDC a UDP packet first. The current "solution".
112 KDC k3 = on(p3);
126 private static KDC on(int p) throws Exception {
127 KDC k = new KDC(OneKD
[all...]
H A DDupEtypes.java45 // Different test cases, read KDC.processAsReq for details
46 kdc.setOption(KDC.Option.DUP_ETYPE, Integer.parseInt(args[0]));
H A DPrincipalNameEquals.java41 kdc.setOption(KDC.Option.RESP_NT, PrincipalName.KRB_NT_PRINCIPAL);
H A DOneKDC.java35 * This class starts a simple KDC with one realm, several typical principal
45 public class OneKDC extends KDC {
59 * Creates the KDC and starts it.
70 KDC.saveConfig(KRB5_CONF, this,
H A Dok-as-delegate-xrealm.sh58 ${TESTSRC}${FS}KDC.java \
67 # KDC no OK-AS-DELEGATE, fail
70 # KDC set OK-AS-DELEGATE for all, succeed
73 # KDC set OK-AS-DELEGATE for host/host.r3.local only, fail
76 # KDC set OK-AS-DELEGATE for all, succeed
H A DKDC.java45 * A KDC server.
60 * changes of krb5.conf). The KDC class normally does not touch these
63 * settings after calling a KDC method, call <code>Config.refresh()</code> to
78 * <li> More options to KDC, say, error output, say, response nonce !=
86 * 1. Init and start the KDC:
88 * KDC kdc = KDC.create("REALM.NAME", port, isDaemon);
89 * KDC kdc = KDC.create("REALM.NAME");
91 * Here, <code>port</code> is the UDP and TCP port number the KDC serve
125 public class KDC { class
450 private KDC(String realm, String kdc) { method in class:KDC
458 protected KDC(String realm, String kdc, int port, boolean asDaemon) method in class:KDC
[all...]
H A DHttpNegotiateServer.java150 KDC kdcw = KDC.create(REALM_WEB);
155 KDC kdcp = KDC.create(REALM_PROXY);
160 KDC.saveConfig(KRB5_CONF, kdcw, kdcp,
169 KDC.writeMultiKtab(KRB5_TAB, kdcw, kdcp);
H A Dok-as-delegate.sh58 ${TESTSRC}${FS}KDC.java \
H A DNoAddresses.java45 KDC.saveConfig(OneKDC.KRB5_CONF, kdc,
H A DOkAsDelegate.java61 KDC.saveConfig(OneKDC.KRB5_CONF, kdc,
H A DSSL.java60 KDC kdc = KDC.create(OneKDC.REALM);
61 // Run this after KDC, so our own DNS service can be started
70 KDC.saveConfig(OneKDC.KRB5_CONF, kdc);
H A DDynamicKeytab.java72 // Test 4: re-login, KDC use 3 this time.
120 // Test 8: an empty KDC means revoke all
121 KDC.create("EMPTY.REALM").writeKtab(OneKDC.KTAB);

Completed in 67 milliseconds