/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6844193
* @summary support max_retries in krb5.conf
*/
public class MaxRetries {
throws Exception {
// For tryLast
rewriteMaxRetries(-1);
// For tryLess
rewriteMaxRetries(-1);
test2("UDP");
test2("TCP");
test2("UDP");
test2("TCP");
}
/**
* One round of test for max_retries and timeout.
* @param timeout the expected timeout
* @param count the expected total try
*/
count + ") -----------------");
throw new Exception("Wrong timeout value");
}
count--;
}
}
if (count != 0) {
}
}
/**
* One round of test for udp_preference_limit.
* @param proto the expected protocol used
*/
int count = 2;
count--;
throw new Exception("Wrong timeout value");
}
}
}
if (count != 0) {
}
}
/**
* Set udp_preference_limit for global and realm
*/
throws Exception {
while (true) {
if (s == null) {
break;
}
if (s.startsWith("[realms]")) {
// Reconfig global setting
if (global != -1) {
}
if (realm != -1) {
// Reconfig for realm
}
}
}
}
/**
* Set max_retries and timeout value for realm. The global value is always
* 2 and 5000.
* @param value max_retries and timeout/1000 for a realm, -1 means none.
*/
while (true) {
if (s == null) {
break;
}
if (s.startsWith("[realms]")) {
// Reconfig global setting
if (value != -1) {
// Reconfig for realm
}
// Add a bad KDC as the first candidate
}
}
}
}