2362N/A * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 1941N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1941N/A * This code is free software; you can redistribute it and/or modify it 1941N/A * under the terms of the GNU General Public License version 2 only, as 1941N/A * published by the Free Software Foundation. 1941N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1941N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1941N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1941N/A * version 2 for more details (a copy is included in the LICENSE file that 1941N/A * You should have received a copy of the GNU General Public License version 1941N/A * 2 along with this work; if not, write to the Free Software Foundation, 1941N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 1941N/A * @param args boolean if the program should succeed 1941N/A // Create and start the KDCs. Here we have 3 realms: R1, R2 and R3. 1941N/A // R1 is trusted by R2, and R2 trusted by R3. 1941N/A // Defines the client and server on R1 and R3 respectively. 1941N/A " com.sun.security.auth.module.Krb5LoginModule\n" +
1941N/A " useTicketCache=false\n" +
1941N/A "com.sun.security.jgss.krb5.accept {\n" +
1941N/A " com.sun.security.auth.module.Krb5LoginModule required\n" +
1941N/A " keyTab=localkdc.ktab\n" +
1941N/A // Test twice. The frist time the whole cross realm process is tried, 1941N/A // the second time the cached service ticket is used. This is to make sure 1941N/A // the behaviors are the same, especailly for the case when one of the 1941N/A // cross-realm TGTs does not have OK-AS-DELEGATE on.