step4.htm revision 5939f4d5fbd2b5586260389e2ed537b20c712cf5
0N/A<script type="text/javascript">
31N/A var userStoreDomainNameValid = true;
0N/A var userStoreHostValid = true;
0N/A var userStorePortValid = true;
0N/A var userStoreRootSuffixValid = true;
0N/A var userStoreLoginIdValid = true;
0N/A var userStorePasswordValid = false;
0N/A
0N/A function allValid() {
0N/A var allFieldsValid = (userStoreHostValid && userStorePortValid &&
0N/A userStoreRootSuffixValid && userStoreLoginIdValid &&
0N/A userStorePasswordValid);
0N/A
0N/A if (allFieldsValid) {
0N/A ie7fix++;
0N/A AjaxUtils.call("$context$path?actionLink=validateUMHost&ie7fix=" + ie7fix,
0N/A validateUMHost);
0N/A } else {
0N/A $('nextTabButton').disabled = true;
0N/A }
0N/A }
0N/A
0N/A function adValid() {
0N/A var adFieldsValid = (userStoreDomainNameValid &&
0N/A userStoreLoginIdValid &&
87N/A userStorePasswordValid);
0N/A
0N/A if (adFieldsValid) {
0N/A ie7fix++;
0N/A AjaxUtils.call("$context$path?actionLink=validateUMDomainName&ie7fix=" + ie7fix, validateUMDomainName);
0N/A } else {
0N/A $('nextTabButton').disabled = true;
0N/A }
0N/A }
0N/A
0N/A function validateUMDomainName(response) {
0N/A if (response.responseText == "ok") {
0N/A $('nextTabButton').disabled = false;
0N/A $('userStoreDomainNameStatus').innerHTML = "";
0N/A } else {
0N/A $('nextTabButton').disabled = true;
0N/A $('userStoreDomainNameStatus').innerHTML = errorImage +
0N/A '<small>' + response.responseText + '</small>';
87N/A }
87N/A }
0N/A
0N/A function validateUMHost(response) {
0N/A if (response.responseText == "ok") {
0N/A $('nextTabButton').disabled = false;
0N/A $('userStoreHostStatus').innerHTML = "";
0N/A } else {
0N/A $('nextTabButton').disabled = true;
0N/A $('userStoreHostStatus').innerHTML = errorImage +
0N/A '<small>' + response.responseText + '</small>';
0N/A }
0N/A }
0N/A
87N/A function validateADUserFields(response) {
59N/A if (response.responseText == "ok") {
59N/A eval(field + "Valid = true;" );
59N/A $(field + 'Status').innerHTML = okString;
59N/A if (field == "ADuserStorePassword") {
59N/A userStorePasswordValid = true;
59N/A }
59N/A adValid();
59N/A } else {
0N/A eval(field + "Valid = false;" );
87N/A $(field + 'Status').innerHTML = errorImage +
87N/A '<small>' + response.responseText + '</small>';
87N/A }
87N/A field = "";
87N/A }
87N/A
87N/A function validateUserFields(response) {
87N/A if (response.responseText == "ok") {
0N/A eval(field + "Valid = true;" );
0N/A $(field + 'Status').innerHTML = okString;
87N/A allValid();
87N/A } else {
87N/A eval(field + "Valid = false;" );
87N/A $('nextTabButton').disabled = true;
87N/A $(field + 'Status').innerHTML = errorImage +
87N/A '<small>' + response.responseText + '</small>';
87N/A }
87N/A field = "";
87N/A }
87N/A
87N/A function validateUserStoreSSL() {
87N/A field = "userStoreSSL";
87N/A var callUrl = "$context$path?actionLink=setSSL";
87N/A var value = ($('userStoreSSL').checked) ? "SSL" : "SIMPLE";
87N/A var param = "&ssl=" + value;
87N/A ie7fix++;
87N/A callUrl = callUrl + "&ie7fix=" + ie7fix;
87N/A AjaxUtils.call(callUrl+param, validateSSLField);
87N/A }
87N/A
87N/A function validateSSLField() {
0N/A allValid();
0N/A }
87N/A
0N/A function validateADUserStoreSSL() {
0N/A field = "ADuserStoreSSL";
0N/A var callUrl = "$context$path?actionLink=setSSL";
0N/A var value = ($('ADuserStoreSSL').checked) ? "SSL" : "SIMPLE";
0N/A var param = "&ssl=" + value;
87N/A ie7fix++;
87N/A callUrl = callUrl + "&ie7fix=" + ie7fix;
87N/A AjaxUtils.call(callUrl+param, validateADSSLField);
0N/A }
87N/A
87N/A function validateADSSLField() {
87N/A adValid();
87N/A }
0N/A
0N/A function validateUserStoreDomainName() {
0N/A field = "userStoreDomainName";
0N/A var callUrl = "$context$path?actionLink=setDomainName";
0N/A var param = "&domainname=" + $('userStoreDomainName').value;
0N/A ie7fix++;
0N/A callUrl = callUrl + "&ie7fix=" + ie7fix;
0N/A AjaxUtils.call(callUrl+param, validateADUserFields);
0N/A }
0N/A
0N/A function validateADUserStoreLoginId() {
0N/A field = "ADuserStoreLoginId";
0N/A var callUrl = "$context$path?actionLink=setLoginID";
0N/A var param = "&dn=" + $('ADuserStoreLoginId').value;
0N/A ie7fix++;
87N/A callUrl = callUrl + "&ie7fix=" + ie7fix;
0N/A AjaxUtils.call(callUrl+param, validateADUserFields);
0N/A }
94N/A
0N/A function validateADUserStorePassword() {
0N/A field = "ADuserStorePassword";
0N/A var callUrl = "$context$path?actionLink=setPassword";
87N/A var param = "password=" + encodeURIComponent($('ADuserStorePassword').value);
87N/A ie7fix++;
87N/A callUrl = callUrl + "&ie7fix=" + ie7fix;
87N/A AjaxUtils.doPost(null, callUrl, param, validateADUserFields,
87N/A null, null);
87N/A }
87N/A
87N/A function validateUserStoreHost() {
87N/A field = "userStoreHost";
87N/A var callUrl = "$context$path?actionLink=setHost";
87N/A var param = "&host=" + $('userStoreHost').value;
87N/A ie7fix++;
87N/A callUrl = callUrl + "&ie7fix=" + ie7fix;
87N/A AjaxUtils.call(callUrl+param, validateUserFields);
87N/A }
87N/A
87N/A function validateUserStorePort() {
87N/A field = "userStorePort";
87N/A var callUrl = "$context$path?actionLink=setPort";
87N/A var param = "&port=" + $('userStorePort').value;
87N/A ie7fix++;
87N/A callUrl = callUrl + "&ie7fix=" + ie7fix;
87N/A AjaxUtils.call(callUrl+param, validateUserFields);
87N/A }
87N/A
87N/A function validateUserStoreRootSuffix() {
87N/A field = "userStoreRootSuffix";
87N/A var callUrl = "$context$path?actionLink=setRootSuffix";
87N/A var param = "&rootsuffix=" + encodeURIComponent($('userStoreRootSuffix').value);
87N/A ie7fix++;
87N/A callUrl = callUrl + "&ie7fix=" + ie7fix;
87N/A AjaxUtils.call(callUrl+param, validateUserFields);
87N/A }
87N/A
87N/A function validateUserStoreLoginId() {
87N/A field = "userStoreLoginId";
87N/A var callUrl = "$context$path?actionLink=setLoginID";
87N/A var param = "&dn=" + $('userStoreLoginId').value;
87N/A ie7fix++;
87N/A callUrl = callUrl + "&ie7fix=" + ie7fix;
87N/A AjaxUtils.call(callUrl+param, validateUserFields);
87N/A }
87N/A
87N/A function validateUserStorePassword() {
87N/A field = "userStorePassword";
87N/A var callUrl = "$context$path?actionLink=setPassword";
0N/A var param = "password=" + encodeURIComponent($('userStorePassword').value);
0N/A ie7fix++;
3N/A callUrl = callUrl + "&ie7fix=" + ie7fix;
0N/A AjaxUtils.doPost(null, callUrl, param, validateUserFields, null, null);
3N/A }
3N/A
87N/A function setADforDomainName() {
0N/A setType(document.getElementById("ldapv3adforDomainName").value);
0N/A document.getElementById("activeDirectoryConfigSettings").style.display = "";
87N/A document.getElementById("embeddedConfigSettings").style.display = "none";
0N/A document.getElementById("userStoreSettings").style.display = "none";
ie7fix++;
AjaxUtils.call("$context$path?actionLink=resetUMEmbedded&ie7fix=" + ie7fix);
}
function setAD() {
setType(document.getElementById("ldapv3ad").value);
document.getElementById("userStoreSettings").style.display = "";
document.getElementById("activeDirectoryConfigSettings").style.display = "none";
}
function setADAM() {
setType(document.getElementById("ldapv3adam").value);
document.getElementById("userStoreSettings").style.display = "";
document.getElementById("activeDirectoryConfigSettings").style.display = "none";
}
function setODSEE() {
setType(document.getElementById("ldapv3odsee").value);
document.getElementById("userStoreSettings").style.display = "";
document.getElementById("activeDirectoryConfigSettings").style.display = "none";
}
function setOpenDS() {
setType(document.getElementById("ldapv3opends").value);
document.getElementById("userStoreSettings").style.display = "";
document.getElementById("activeDirectoryConfigSettings").style.display = "none";
}
function setTivoli() {
setType(document.getElementById("ldapv3tivoli").value);
document.getElementById("userStoreSettings").style.display = "";
document.getElementById("activeDirectoryConfigSettings").style.display = "none";
}
function setType(type) {
var callUrl = "$context$path?actionLink=setStoreType";
ie7fix++;
callUrl = callUrl + "&ie7fix=" + ie7fix;
AjaxUtils.call(callUrl + "&type=" + type);
}
<!-- when embedded user config is selected -->
function enableEmbeddedConfig() {
userStoreChoice = "embedded";
document.getElementById("embeddedConfigSettings").style.display = "";
document.getElementById("externalConfigSettings").style.display = "none";
document.getElementById("activeDirectoryConfigSettings").style.display = "none";
$('nextTabButton').disabled = false;
ie7fix++;
AjaxUtils.call("$context$path?actionLink=setUMEmbedded&ie7fix=" + ie7fix);
}
<!-- when external config is selected -->
function enableExternalConfig() {
userStoreChoice = "external";
document.getElementById("ldapv3odsee").checked=true;
document.getElementById("externalConfigSettings").style.display = "";
document.getElementById("userStoreSettings").style.display = "";
document.getElementById("activeDirectoryConfigSettings").style.display = "none";
document.getElementById("embeddedConfigSettings").style.display = "none";
allValid();
ie7fix++;
AjaxUtils.call("$context$path?actionLink=resetUMEmbedded&ie7fix=" + ie7fix);
}
function initUserStorePage() {
if ( "$EXT_DATA_STORE" == "true" ) {
enableExternalConfig();
} else {
enableEmbeddedConfig();
}
}
YAHOO.util.Event.onDOMReady(initUserStorePage);
</script>
<div style="margin-left:10px;">
<h1>$page.getLocalizedString("step4.title")<img class="pointer" src="$context/assets/images/message.gif"/></h1>
<p>$page.getLocalizedString("step4.description")</p>
<input type="radio" id="userStoreDefault" name="userStoreCustom"
style="margin-left:1em" value="false" $selectEmbeddedUM
$radioDataTypeDisabled onclick="enableEmbeddedConfig();"/>
<span>$page.getLocalizedString("configurator.embedded")</span><br/>
<input type="radio" id="userStoreCustom" name="userStoreCustom"
style="margin-left:1em" value="true" $selectExternalUM
$radioDataTypeDisabled onclick="enableExternalConfig();"/>
<span>$page.getLocalizedString("configurator.remote")</span>
<div id="userStoreModule" style="width:610px;">
<p id="allfields"><em>*</em>&nbsp;$page.getLocalizedString("required.field.label")</p>
<b class="xtop">
<b class="xt1"></b>
<b class="xt2"></b>
<b class="xt3"></b>
<b class="xt4"></b>
</b>
<div class="headerBox">$page.getLocalizedString("step4.sub.title")</div>
<div class="bodyBox" style="height:270px;">
<div id="embeddedConfigSettings"
style="margin-left:10px; display:none">
<br>
<img src="$context/assets/images/error.jpg">&nbsp;
<b>$page.getLocalizedString("embedded.user.message")</b>
</div>
<span id="externalConfigSettings" style="display:none">
<table class="temp" style="margin-bottom: 0">
<tr>
<td valign="top"><label for="userStoreType"><em>*&nbsp;</em>$page.getLocalizedString("store.type.label")</label></td>
<td>
<input type="radio" id="ldapv3odsee" name="userStoreType" style="margin-left:1em" value="LDAPv3ForODSEE" $selectLDAPv3odsee onclick="setODSEE();"/>&nbsp;$page.getLocalizedString("odsee.ldap.schema")
<input type="radio" id="ldapv3opends" name="userStoreType" style="margin-left:2em" value="LDAPv3ForOpenDS" $selectLDAPv3opends onclick="setOpenDS();"/>&nbsp;$page.getLocalizedString("opends.ldap.schema")<br>
<input type="radio" id="ldapv3ad" name="userStoreType" style="margin-left:1em" value="LDAPv3ForAD" $selectLDAPv3ad onclick="setAD();"/>&nbsp;$page.getLocalizedString("activedirectory.ldap.schema")
<input type="radio" id="ldapv3adforDomainName" name="userStoreType" style="margin-left:1em" value="LDAPv3ForADDC" $selectLDAPv3addc onclick="setADforDomainName();"/>&nbsp;$page.getLocalizedString("activedirectoryfordomainname.ldap.schema")<br>
<input type="radio" id="ldapv3adam" name="userStoreType" style="margin-left:1em" value="LDAPv3ForADAM" $selectLDAPv3adam onclick="setADAM();"/>&nbsp;$page.getLocalizedString("adam.ldap.schema")
<input type="radio" id="ldapv3tivoli" name="userStoreType" style="margin-left:1em" value="LDAPv3ForTivoli" $selectLDAPv3tivoli onclick="setTivoli();"/>&nbsp;$page.getLocalizedString("tivoli.ldap.schema")
</td>
</tr>
</table>
<table class="temp" id="userStoreSettings" style="display:none">
<tr>
<td><label for="userStoreSSL"><em>*&nbsp;</em>$page.getLocalizedString("directory.ssl.label")</label></td>
<td>
<input id="userStoreSSL" name="userStoreSSL"
type="checkbox" value="SSL" $selectUserStoreSSL
onClick="APP.callDelayed(this, validateUserStoreSSL)"/>
</td>
</tr>
<tr>
<td><label for="userStoreHost"><em>*&nbsp;</em>$page.getLocalizedString("directory.name.label")</label></td>
<td>
<input id="userStoreHost" name="userStoreHost" type="text"
class="text" style="width:150px"
value="$userStoreHost"
onkeyup="APP.callDelayed(this, validateUserStoreHost)"
onchange="APP.callDelayed(this, validateUserStoreHost)"/>
<span id="userStoreHostStatus"></span>
</td>
</tr>
<tr>
<td><label for="userStorePort"><em>*&nbsp;</em>$page.getLocalizedString("port.label")</label></td>
<td>
<input id="userStorePort" name="userStorePort"
type="text" class="text" size="5" maxLength="5"
value="$userStorePort"
onkeyup="APP.callDelayed(this, validateUserStorePort)"
onchange="APP.callDelayed(this, validateUserStorePort)"/>
<span id="userStorePortStatus"></span>
</td>
</tr>
<tr>
<td><label for="userStoreRootSuffix"><em>*&nbsp;</em>$page.getLocalizedString("root.suffix.label")</label></td>
<td>
<input id="userStoreRootSuffix" name="userStoreRootSuffix"
type="text" class="text" style="width:200px"
value="$userStoreRootSuffix"
onkeyup="APP.callDelayed(this, validateUserStoreRootSuffix)"
onchange="APP.callDelayed(this, validateUserStoreRootSuffix)"/>
<span id="userStoreRootSuffixStatus"></span>
</td>
</tr>
<tr>
<td><label for="userStoreLoginId"><em>*&nbsp;</em>$page.getLocalizedString("login.id.label")</label></td>
<td>
<input id="userStoreLoginId" name="userStoreLoginId"
type="text" class="text" style="width:150px"
value="$userStoreLoginId"
onkeyup="APP.callDelayed(this, validateUserStoreLoginId)"
onchange="APP.callDelayed(this, validateUserStoreLoginId)"/>
<span id="userStoreLoginIdStatus"></span>
</td>
</tr>
<tr>
<td><label for="userStorePassword"><em>*&nbsp;</em>$page.getLocalizedString("password.label")</label></td>
<td>
<input id="userStorePassword" name="userStorePassword"
type="password" class="text" style="width:100px"
onkeyup="APP.callDelayed(this, validateUserStorePassword )"
onchange="APP.callDelayed(this, validateUserStorePassword )" />
<span id="userStorePasswordStatus"></span>
</td>
</tr>
</table>
</span>
<span id="activeDirectoryConfigSettings" style="display:none">
<table class="temp">
<tr>
<td><label for="ADuserStoreSSL"><em>*&nbsp;</em>$page.getLocalizedString("directory.ssl.label")</label></td>
<td>
<input id="ADuserStoreSSL" name="ADuserStoreSSL"
type="checkbox" value="SSL" $selectADUserStoreSSL
onClick="APP.callDelayed(this, validateADUserStoreSSL)"/>
</td>
</tr>
<tr>
<td><label for="userStoreDomainName"><em>*&nbsp;</em>$page.getLocalizedString("domain.name.label")</label></td>
<td>
<input id="userStoreDomainName" name="userStoreDomainName" type="text"
class="text" style="width:150px"
onkeyup="APP.callDelayed(this, validateUserStoreDomainName)"
onchange="APP.callDelayed(this, validateUserStoreDomainName)"/>
<span id="userStoreDomainNameStatus"></span>
</td>
</tr>
<tr>
<td><label for="ADuserStoreLoginId"><em>*&nbsp;</em>$page.getLocalizedString("login.id.label")</label></td>
<td>
<input id="ADuserStoreLoginId" name="ADuserStoreLoginId"
type="text" class="text" style="width:150px"
onkeyup="APP.callDelayed(this, validateADUserStoreLoginId)"
onchange="APP.callDelayed(this, validateADUserStoreLoginId)"/>
<span id="ADuserStoreLoginIdStatus"></span>
</td>
</tr>
<tr>
<td><label for="ADuserStorePassword"><em>*&nbsp;</em>$page.getLocalizedString("password.label")</label></td>
<td>
<input id="ADuserStorePassword" name="ADuserStorePassword"
type="password" class="text" style="width:100px"
onkeyup="APP.callDelayed(this, validateADUserStorePassword )"
onchange="APP.callDelayed(this, validateADUserStorePassword )" />
<span id="ADuserStorePasswordStatus"></span>
</td>
</tr>
</table>
</span>
</div>
<div>
<b class="xbottom">
<b class="xbGray1"></b>
<b class="xbGray2"></b>
<b class="xbGray3"></b>
<b class="xbGray4"></b>
</b>
</div>
</div>
</div>