274 lines
10 KiB
HTML
274 lines
10 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4.0//EN">
|
|
<html>
|
|
<head>
|
|
<meta name="Copyright" content="Copyright (c) 2004 by IBM Corporation">
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
|
<title>Windows Server installation advisor--CHAP authentication</title>
|
|
|
|
<script language="Javascript" type="text/javascript" src="rzahqadvcommon.js"></script>
|
|
<script language="Javascript" type="text/javascript" src="../rzahg/iccommon.js"></script>
|
|
<script type="text/javascript" language="Javascript">
|
|
<!-- // Hide script from older browsers
|
|
|
|
var errMess = "Enter a valid CHAP name or select a different option. The CHAP name must contain only letters (A-Z) or digits (0-9).";
|
|
var errMess1 = "Enter a CHAP secret or select a different option. The CHAP secrete must contain only letters (A-Z) or digits (0-9).";
|
|
|
|
//START NON-TRANSLATABLE
|
|
|
|
//Obtain name of HTML file in parent frame.
|
|
var parentDir = parent.window.location.href.substring(0,location.href.lastIndexOf('/')+1);
|
|
var parentUrl = parent.window.location.href.substring(parentDir.length,parent.window.location.href.length+1);
|
|
if (parentUrl.indexOf("#") >= 0) { parentUrl = parentUrl.substring(0,parentUrl.indexOf("#"));}
|
|
|
|
function checkFrame() {
|
|
//Is the hidden frame already loaded with the correct html?
|
|
if (parentUrl != "rzahqadvisor1.htm") {
|
|
window.location = "rzahqadvisor1.htm"; //load advisor frameset
|
|
return;
|
|
} else {
|
|
//Obtain name of HTML file in hidden frame.
|
|
var hiddenDir = parent.hidden.window.location.href.substring(0,location.href.lastIndexOf('/')+1);
|
|
var hiddenUrl = parent.hidden.window.location.href.substring(hiddenDir.length,parent.hidden.window.location.href.length+1);
|
|
if (hiddenUrl.indexOf("#") >= 0) { hiddenUrl = hiddenUrl.substring(0,hiddenUrl.indexOf("#"));}
|
|
if (hiddenUrl != "rzahqadvhidden.htm") {
|
|
//Correct HTML not loaded, load it
|
|
parent.hidden.window.location = "rzahqadvhidden.htm";
|
|
} else { //already loaded
|
|
getData();
|
|
}
|
|
}
|
|
}
|
|
|
|
function getData() {
|
|
if (!isEmpty(parent.hidden.v1[129])) { //value stored for first radio button
|
|
if (parseInt(parent.hidden.v1[129]) == 0) { //yes
|
|
document.form1.rad[1].checked = true;
|
|
//show second question
|
|
MM_showHideLayers('questiontwo','','show');
|
|
|
|
if (!isEmpty(parent.hidden.v1[130])) { //value stored for second radio button
|
|
if (isNS && !isNS6) {
|
|
document.layers.questiontwo.document.form2.rad2[parseInt(parent.hidden.v1[130],10)].checked = true;
|
|
} else {
|
|
document.form2.rad2[parseInt(parent.hidden.v1[130],10)].checked = true;
|
|
}
|
|
if (parseInt(parent.hidden.v1[130],10) == 1) {
|
|
if (!isEmpty(parent.hidden.v1[131])) {
|
|
if (isNS && !isNS6) {
|
|
document.layers.questiontwo.document.form2.chapname.value = parent.hidden.v1[131];
|
|
} else {
|
|
document.form2.chapname.value = parent.hidden.v1[131];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
if (!isEmpty(parent.hidden.v1[132])) { //value stored for third radio button
|
|
if (isNS && !isNS6) {
|
|
document.layers.questiontwo.document.form2.rad3[parseInt(parent.hidden.v1[132],10)].checked = true;
|
|
} else {
|
|
document.form2.rad3[parseInt(parent.hidden.v1[132],10)].checked = true;
|
|
}
|
|
if (parseInt(parent.hidden.v1[132],10) == 1) {
|
|
if (!isEmpty(parent.hidden.v1[133])) {
|
|
if (isNS && !isNS6) {
|
|
document.layers.questiontwo.document.form2.secretname.value = parent.hidden.v1[133];
|
|
} else {
|
|
document.form2.secretname.value = parent.hidden.v1[133];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
} else { //not yes
|
|
//hide second question
|
|
MM_showHideLayers('questiontwo','','hide');
|
|
if (parseInt(parent.hidden.v1[129]) == 1) { //no
|
|
document.form1.rad[0].checked = true;
|
|
}
|
|
}
|
|
} else { //no value saved for first radio button, hide second question
|
|
MM_showHideLayers('questiontwo','','hide');
|
|
}
|
|
}
|
|
|
|
function onNext() {
|
|
if (document.form1.rad[0].checked == true) { //no chap
|
|
parent.hidden.v1[129] = 1;
|
|
parent.hidden.v1[130] = "";
|
|
parent.hidden.v1[131] = "";
|
|
parent.hidden.v1[132] = "";
|
|
parent.hidden.v1[133] = "";
|
|
} else { //chap
|
|
parent.hidden.v1[129] = 0;
|
|
|
|
if (isNS && !isNS6) {
|
|
if (document.layers.questiontwo.document.form2.rad2[0].checked == true) { //use remote sys config name for chap name
|
|
parent.hidden.v1[130] = 0; // host name
|
|
} else {
|
|
parent.hidden.v1[130] = 1; // use chap name
|
|
if (isEmpty(document.layers.questiontwo.document.form2.chapname.value) || !isAlphanumeric(document.layers.questiontwo.document.form2.chapname.value)) {
|
|
alert(errMess);
|
|
return;
|
|
} else {
|
|
//Save data
|
|
parent.hidden.v1[131] = document.layers.questiontwo.document.form2.chapname.value;
|
|
}
|
|
}
|
|
|
|
if (document.layers.questiontwo.document.form2.rad3[0].checked == true) { //generate secret once
|
|
parent.hidden.v1[132] = 0;
|
|
} else {
|
|
if (document.layers.questiontwo.document.form2.rad3[1].checked == true) { //generate secret once
|
|
|
|
parent.hidden.v1[132] = 1; // use chap name
|
|
if (isEmpty(document.layers.questiontwo.document.form2.secretname.value) || !isAlphanumeric(document.layers.questiontwo.document.form2.secretname.value)) {
|
|
alert(errMess1);
|
|
return;
|
|
} else {
|
|
//Save data
|
|
parent.hidden.v1[133] = document.layers.questiontwo.document.form2.secretname.value;
|
|
}
|
|
} else {
|
|
parent.hidden.v1[132] = 2; // generate chap secret each time
|
|
}
|
|
}
|
|
|
|
|
|
} else {
|
|
if (document.form2.rad2[0].checked == true) { //use remote sys config name for chap name
|
|
parent.hidden.v1[130] = 0; // host name
|
|
} else {
|
|
parent.hidden.v1[130] = 1; // use chap name
|
|
if (isEmpty(document.form2.chapname.value) || !isAlphanumeric(document.form2.chapname.value)) {
|
|
alert(errMess);
|
|
return;
|
|
} else {
|
|
//Save data
|
|
parent.hidden.v1[131] = document.form2.chapname.value;
|
|
}
|
|
}
|
|
|
|
if (document.form2.rad3[0].checked == true) { //generate secret once
|
|
parent.hidden.v1[132] = 0;
|
|
} else {
|
|
if (document.form2.rad3[1].checked == true) { //generate secret once
|
|
parent.hidden.v1[132] = 1; // use chap name
|
|
if (isEmpty(document.form2.secretname.value) || !isAlphanumeric(document.form2.secretname.value)) {
|
|
alert(errMess1);
|
|
return;
|
|
} else {
|
|
//Save data
|
|
parent.hidden.v1[133] = document.form2.secretname.value;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
//Next page
|
|
window.location = "rzahqadvisor3n.htm";
|
|
}
|
|
|
|
|
|
function onBack() {
|
|
if (parseInt(parent.hidden.v1[122],10) == 1) { //manual for boot parm delivery method, skip boot device panel
|
|
window.location = "rzahqadvisor3j.htm";
|
|
} else {
|
|
window.location = "rzahqadvisor3k.htm";
|
|
}
|
|
}
|
|
|
|
function selectDivRadio(num) {
|
|
if (isNS && !isNS6) {
|
|
document.layers.questiontwo.document.form2.rad2[num].checked = true;
|
|
} else {
|
|
document.form2.rad2[num].checked = true;
|
|
}
|
|
}
|
|
|
|
function selectDiv3Radio(num) {
|
|
if (isNS && !isNS6) {
|
|
document.layers.questiontwo.document.form2.rad3[num].checked = true;
|
|
} else {
|
|
document.form2.rad3[num].checked = true;
|
|
}
|
|
}
|
|
|
|
//END NON-TRANSLATABLE
|
|
////////// -->
|
|
</script>
|
|
|
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</head>
|
|
|
|
<body onLoad="checkFrame()">
|
|
|
|
<h2>Windows Server installation advisor</h2>
|
|
<strong>CHAP authentication</strong>
|
|
|
|
<p>Challenge Handshake Authentication Protocol (CHAP) can optionally be used to
|
|
ensure that only authorized systems can use the server's storage resources.
|
|
CHAP use is not required, but it is recommended.</p>
|
|
|
|
<p>Do you want to use CHAP authentication?</p>
|
|
|
|
<form name="form1">
|
|
<blockquote>
|
|
|
|
<input type="radio" checked name="rad" value="nope" id="nope" onClick="MM_showHideLayers('questiontwo','','hide');">
|
|
<label for="nope">No</label>
|
|
<br><br>
|
|
<input type="radio" name="rad" value="yep" id="yep" onClick="MM_showHideLayers('questiontwo','','show');">
|
|
<label for="yep">Yes</label>
|
|
</blockquote>
|
|
</form>
|
|
|
|
|
|
<div id="questiontwo" style="position: relative;">
|
|
<p>Select a CHAP name.</p>
|
|
<form name="form2">
|
|
<p>
|
|
<blockquote>
|
|
<input type="radio" name="rad2" checked value="useremote" id="useremote">
|
|
<label for="useremote">Use the remote system configuration name as the CHAP name</label>
|
|
<br><br>
|
|
<input type="radio" name="rad2" value="usechap" id="usechap">
|
|
<label for="usechap">Use the following CHAP name:</label>
|
|
<INPUT type="text" maxlength="16" name="chapname" id="usechap" onKeyPress="selectDivRadio(1)">
|
|
<br><br>
|
|
</blockquote>
|
|
</p>
|
|
|
|
<p>Select a CHAP secret.</p>
|
|
<p>
|
|
<blockquote>
|
|
<input type="radio" name="rad3" checked value="genonce" id="genonce">
|
|
<label for="genonce">Generate a CHAP secret once</label>
|
|
<br><br>
|
|
<input type="radio" name="rad3" value="usesec" id="usechap">
|
|
<label for="usesec">Use the following CHAP secret:</label>
|
|
<INPUT type="text" size="25" maxlength="24" name="secretname" id="usesec" onKeyPress="selectDiv3Radio(1)">
|
|
<br><br>
|
|
</blockquote>
|
|
</p>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
<form name="form3">
|
|
|
|
<center>
|
|
<input type="button" value="<< Back" onClick="onBack()">
|
|
<input type="button" value="Next >>" onClick="onNext()">
|
|
</center>
|
|
|
|
</form>
|
|
</body>
|
|
</html>
|