step3.htm revision b93185b577f7150fec37f9999b95b246d73bf63c
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd var multiServer = "false";
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd var validServerURL = "true";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function configStoreServerValidated( response ) {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd storeServerValidated( '$type', response );
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function configStoreBaseDNValidated( response ) {
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc storeBaseDNValidated('$type', response );
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function configStoreLoginIdValidated( response ) {
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen storeLoginIdValidated( '$type', response );
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen function validateUserFields(response) {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd if (response.responseText == "ok") {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd eval(field + "Valid = true;" );
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen $(field + 'Status').innerHTML = okString;
3f08db06526d6901aa08c110b5bc7dde6bc39905nd allValid();
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd eval(field + "Valid = false;" );
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $(field + 'Status').innerHTML = errorImage +
a78048ccbdb6256da15e6b0e7e95355e480c2301nd field = "";
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd function validatePort() {
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd field = "configStorePort";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var callUrl = "$context$path?actionLink=validateLocalPort";
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen var param = "&port=" + $('configStorePort').value;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd callUrl = callUrl + "&ie7fix=" + ie7fix;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd setTimeout("enableNextButton()", 500);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd AjaxUtils.call(callUrl+param, validateUserFields);
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung function validateAdminPort() {
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung field = "configStoreAdminPort";
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung var callUrl = "$context$path?actionLink=validateLocalAdminPort";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var param = "&port=" + $('configStoreAdminPort').value;
9bcfc3697a91b5215893a7d0206865b13fc72148nd callUrl = callUrl + "&ie7fix=" + ie7fix;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd setTimeout("enableNextButton()", 500);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd AjaxUtils.call(callUrl+param, validateUserFields);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function validateJmxPort() {
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung field = "configStoreJmxPort";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var callUrl = "$context$path?actionLink=validateLocalJmxPort";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var param = "&port=" + $('configStoreJmxPort').value;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd callUrl = callUrl + "&ie7fix=" + ie7fix;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd setTimeout("enableNextButton()", 500);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd AjaxUtils.call(callUrl+param, validateUserFields);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function validateEncKey() {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('nextTabButton').disabled = true;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var value = escape($('encryptionKey').value);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var callUrl =
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd "$context$path?actionLink=validateEncKey&encKey=" + value;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd setTimeout("enableNextButton()", 500);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd AjaxUtils.call(callUrl, validateEncKeyResponse);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function validateEncKeyResponse(response) {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd if (response.responseText == "true") {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('encryptionKeyStatus').innerHTML = okString;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('encryptionKeyStatus').innerHTML = warningImage +
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function validateConfigStoreSSL() {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var value = ($('configStoreSSL').checked) ? "SSL" : "SIMPLE";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var callUrl =
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd "$context$path?actionLink=validateInput&key=configStoreSSL&value=" +
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd callUrl = callUrl + "&ie7fix=" + ie7fix;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd AjaxUtils.call(callUrl, validateConfigSSL);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function validateConfigSSL(response) {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function validateConfigStoreHost() {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var call = "$context$path?actionLink=validateConfigStoreHost";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var hostname = "&configStoreHost=" + $('configStoreHost').value;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('nextTabButton').disabled = true;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd field = "configStoreHost";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd call = call + "&ie7fix=" + ie7fix;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd AjaxUtils.call(call+hostname, validateSMHost);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function validateConfigStoreLoginId() {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('nextTabButton').disabled = true;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd field = "configStoreLoginId";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd setTimeout("enableNextButton()", 500);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd validate();
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function validateConfigStorePassword() {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('nextTabButton').disabled = true;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd field = "configStorePassword";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd setTimeout("enableNextButton()", 500);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd validatePost();
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function validateRootSuffix() {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('nextTabButton').disabled = true;
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf field = "rootSuffix";
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen var callUrl = "$context$path?actionLink=validateRootSuffix&ie7fix=" +
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen ie7fix + "&rootSuffix=" + escape($(field).value);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd setTimeout("enableNextButton()", 500);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd AjaxUtils.call(callUrl, fieldValidated);
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf function validateServerURL(response) {
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen var resp = eval('('+response.responseText+')');
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen var image = okImage;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd if (resp.code == "100") {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd // url was a valid OpenAM server
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen validServerURL = true;
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen document.getElementById("existingPort").disabled = true;
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen document.getElementById("existingPort").value = resp.existingPort;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd if (resp.embedded == "true") {
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen document.getElementById("replicationPorts").style.display = "";
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf var message = "";
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen if (resp.replication == "true") {
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen document.getElementById("existingRepPort").disabled = true;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd message = '<small>$page.getQuoteEscapedLocalizedString("existing.port.values.replication")</small>';
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd document.getElementById("existingRepPort").disabled = false;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd message='<small>$page.getQuoteEscapedLocalizedString("existing.port.values.noreplication")</small>';
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd document.getElementById("replicationMessage").innerHTML= message;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd document.getElementById("existingRepPort").value = resp.replicationPort;
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen document.getElementById("existingLDAP").style.display = "";
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen document.getElementById("existingStoreHost").disabled = true;
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen document.getElementById("existingStoreHost").value = resp.existingStoreHost;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd document.getElementById("existingStorePort").disabled = true;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd document.getElementById("existingStorePort").value = resp.existingStorePort;
67c9cb8a211ba641c62f3c8db6fb5b7abc2a6ea8rbowen $('nextTabButton').disabled = false;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd // error handling
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd validServerURL = false;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd image = errorImage;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd document.getElementById("replicationPorts").style.display = "none";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd document.getElementById("existingLDAP").style.display = "none";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('nextTabButton').disabled = true;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('existingHostStatus').innerHTML = image +
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function validateHostName() {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('existingHostStatus').innerHTML = '$page.getQuoteEscapedLocalizedString("validating.url.string")';
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var call = "$context$path?actionLink=validateHostName";
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd var hostname = "&hostName=" + $('existingHost').value;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('nextTabButton').disabled = true;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd call = call + "&ie7fix=" + ie7fix;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd AjaxUtils.call(call+hostname, validateServerURL);
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd function localPortResponse(response) {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd if (message == "ok") {
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd eval(field + "Valid = true;" );
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $(field + 'Status').innerHTML = okString;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd eval(field + "Valid = false;" );
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $(field + 'Status').innerHTML = errorImage +
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd $('nextTabButton').disabled = true;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd field = "";
727872d18412fc021f03969b8641810d8896820bhumbedooh function validateLocalConfigPort() {
0d0ba3a410038e179b695446bb149cce6264e0abnd field = "localConfigPort";
727872d18412fc021f03969b8641810d8896820bhumbedooh var call = "$context$path?actionLink=validateLocalPort";
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh var portVal = "&port=" + $('localConfigPort').value;
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh call = call + "&ie7fix=" + ie7fix;
727872d18412fc021f03969b8641810d8896820bhumbedooh AjaxUtils.call(call+portVal, localPortResponse);
0d0ba3a410038e179b695446bb149cce6264e0abnd function validateLocalConfigAdminPort() {
ac082aefa89416cbdc9a1836eaf3bed9698201c8humbedooh field = "localConfigAdminPort";
0d0ba3a410038e179b695446bb149cce6264e0abnd var call = "$context$path?actionLink=validateLocalAdminPort";
0d0ba3a410038e179b695446bb149cce6264e0abnd var portVal = "&port=" + $('localConfigAdminPort').value;
727872d18412fc021f03969b8641810d8896820bhumbedooh call = call + "&ie7fix=" + ie7fix;
0d0ba3a410038e179b695446bb149cce6264e0abnd AjaxUtils.call(call+portVal, localPortResponse);
205f749042ed530040a4f0080dbcb47ceae8a374rjung function validateLocalConfigJmxPort() {
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen field = "localConfigJmxPort";
0d0ba3a410038e179b695446bb149cce6264e0abnd var call = "$context$path?actionLink=validateLocalJmxPort";
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd var portVal = "&port=" + $('localConfigJmxPort').value;
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd call = call + "&ie7fix=" + ie7fix;
60e9b3f37c1362c258c50c0fa29b2187a9e1580fnd AjaxUtils.call(call+portVal, localPortResponse);
$('tab4').style.color = "#D3D3D3";
$('tab6').style.color = "#D3D3D3";
AjaxUtils.call("$context$path?actionLink=setReplication&multi=enable&ie7fix=" + ie7fix);
$('tab6').style.color = "";
$('tab4').style.color = "";
AjaxUtils.call("$context$path?actionLink=setReplication&multi=disable&ie7fix=" + ie7fix);
document.getElementById("configStoreSSL").disabled = true;
document.getElementById("configStoreHost").disabled = true;
document.getElementById("configStoreHost").value = "localhost";
document.getElementById("configStoreSSL").disabled = false;
document.getElementById("configStoreHost").disabled = false;
remoteDSHost = document.getElementById("configStoreHost").value;
document.getElementById("configStoreHost").value = remoteDSHost;
AjaxUtils.call("$context$path?actionLink=setConfigType&type=remote&ie7fix=" + ie7fix);
AjaxUtils.call("$context$path?actionLink=setConfigType&type=embedded&ie7fix=" + ie7fix);
(document.getElementById('configStorePassword').value != '');
AjaxUtils.call("$context$path?actionLink=validateSMHost&ie7fix=" + ie7fix,
return (value.length > 0);
if (response.responseText == "ok") {
YAHOO.util.Event.onDOMReady(initConfig);
onkeyup="APP.callDelayed(this, validateConfigStoreHost)"
onchange="APP.callDelayed(this, validateConfigStoreHost)"/>
onkeyup="APP.callDelayed(this, validatePort)"
onchange="APP.callDelayed(this, validatePort)"/>
onkeyup="APP.callDelayed(this, validateAdminPort)"
onchange="APP.callDelayed(this, validateAdminPort)"/>
onkeyup="APP.callDelayed(this, validateJmxPort)"
onchange="APP.callDelayed(this, validateJmxPort)"/>
onkeyup="APP.callDelayed(this, validateEncKey)"
onchange="APP.callDelayed(this, validateEncKey)"/>
onkeyup="APP.callDelayed(this, validateRootSuffix)"
onchange="APP.callDelayed(this, validateRootSuffix)"/>
onkeyup="APP.callDelayed(this, validateConfigStoreLoginId )"
onchange="APP.callDelayed(this, validateConfigStoreLoginId )"/>
value="#if($store.password)$store.password#{end}"
onkeyup="APP.callDelayed(this, validateConfigStorePassword )"
onchange="APP.callDelayed(this, validateConfigStorePassword )"/>
onkeyup="APP.callDelayed(this, validateHostName)"
onchange="APP.callDelayed(this, validateHostName)"/>
onkeyup="APP.callDelayed(this, validateLocalConfigPort)"
onchange="APP.callDelayed(this, validateLocalConfigPort)"/>
onkeyup="APP.callDelayed(this, validateLocalConfigAdminPort)"
onchange="APP.callDelayed(this, validateLocalConfigAdminPort)"/>
onkeyup="APP.callDelayed(this, validateLocalRepPort)"
onchange="APP.callDelayed(this, validateLocalRepPort)"/>
onkeyup="APP.callDelayed(this, validateLocalConfigJmxPort)"
onchange="APP.callDelayed(this, validateLocalConfigJmxPort)"/>
onkeyup="APP.callDelayed(this, validateExistingPort)"
onchange="APP.callDelayed(this, validateExistingPort)"/>
onkeyup="APP.callDelayed(this, validateExistingRepPort)"
onchange="APP.callDelayed(this, validateExistingRepPort)"/>
onkeyup="APP.callDelayed(this, validateHostName)"
onchange="APP.callDelayed(this, validateHostName)"/>
onkeyup="APP.callDelayed(this, validatePort)"
onchange="APP.callDelayed(this, validatePort)"/>