distAuthConfigurator.jsp revision 25e37495f2591ee8f2c057f2644ed5570b4c078d
970N/A $Id: distAuthConfigurator.jsp,v 1.9 2008/08/19 19:08:18 veiming Exp $
970N/A String encryptionKey = SetupDistAuthWAR.generateKey();
970N/A String distAuthProt = request.getScheme();
1130N/A String distAuthHost = request.getServerName();
970N/A String distAuthDeploymenturi = request.getContextPath();
970N/A if (configF.exists()) {
970N/A "Click <a href=\"index.html\">here</a> to go to login page.";
970N/A props.load(new FileInputStream(configFile));
970N/A String submit = request.getParameter("submit");
970N/A String servletPath = request.getServletPath();
970N/A famProt = request.getParameter("famProt");
970N/A famHost = request.getParameter("famHost");
970N/A famPort = request.getParameter("famPort");
1105N/A famDeploymenturi = request.getParameter("famDeploymenturi");
1105N/A distAuthProt = request.getParameter("distAuthProt");
970N/A distAuthHost = request.getParameter("distAuthHost");
1105N/A distAuthPort = request.getParameter("distAuthPort");
970N/A distAuthDeploymenturi = request.getParameter("distAuthDeploymenturi");
970N/A distAuthCookieName = request.getParameter("distAuthCookieName");
970N/A lbCookieName = request.getParameter("lbCookieName");
970N/A distAuthLBCookieName = request.getParameter("distAuthLBCookieName");
970N/A distAuthLBCookieValue = request.getParameter("distAuthLBCookieValue");
970N/A debugDir = request.getParameter("debugDir");
977N/A debugLevel = request.getParameter("debugLevel");
970N/A encryptionKey = request.getParameter("encryptionKey");
970N/A appUser = request.getParameter("appUser");
970N/A appPassword = request.getParameter("appPassword");
970N/A confirmAppPassword = request.getParameter("confirmAppPassword");
970N/A if ((famProt != null) && !famProt.trim().equals("") &&
970N/A (famHost != null) && !famHost.trim().equals("") &&
970N/A (famPort != null) && !famPort.trim().equals("") &&
970N/A (famDeploymenturi != null) && !famDeploymenturi.trim().equals("") &&
982N/A (distAuthProt != null) && !distAuthProt.trim().equals("") &&
970N/A (distAuthHost != null) && !distAuthHost.trim().equals("") &&
970N/A (distAuthPort != null) && !distAuthPort.trim().equals("") &&
970N/A (distAuthDeploymenturi != null) && !distAuthDeploymenturi.trim().equals("") &&
970N/A (distAuthCookieName != null) && !distAuthCookieName.trim().equals("") &&
970N/A (lbCookieName != null) && !lbCookieName.trim().equals("") &&
970N/A distAuthLBCookieName != null && !distAuthLBCookieName.trim().equals("") &&
970N/A distAuthLBCookieName != null && !distAuthLBCookieValue.trim().equals("") &&
970N/A (debugLevel != null) && !debugLevel.trim().equals("") &&
970N/A (debugDir != null) && !debugDir.trim().equals("") &&
970N/A (encryptionKey != null) && !encryptionKey.trim().equals("") &&
970N/A (appUser != null) && !appUser.trim().equals("") &&
970N/A (appPassword != null) && !appPassword.trim().equals("") &&
970N/A if(!((famDeploymenturi.trim()).startsWith("/"))){
1105N/A famDeploymenturi= "/" + famDeploymenturi.trim();
970N/A props.setProperty("DEPLOY_URI", famDeploymenturi);
970N/A props.setProperty("APPLICATION_PASSWD", "");
1105N/A props.setProperty("AM_COOKIE_NAME", "iPlanetDirectoryPro");
970N/A props.setProperty("AM_COOKIE_SECURE", "false");
970N/A props.setProperty("AM_COOKIE_ENCODE", "false");
970N/A props.setProperty("NAMING_URL", famProt + "://" + famHost + ":"
970N/A props.setProperty("NOTIFICATION_URL", distAuthProt + "://" + distAuthHost + ":"
970N/A "file: " + ioex.getMessage();
970N/A if((appPassword != null) && !appPassword.equals("")){
970N/A if(!appPassword.equals(confirmAppPassword)){
970N/A<div class="MstDiv"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="MstTblTop" title="">
1132N/A<div class="MstDivTtl"><img name="ProdName" src="images/PrimaryProductName.png" alt="" /></div></td><td class="MstTdLogo" width="1%"><img name="RMRealm.mhCommon.BrandLogo" src="images/other/javalogo.gif" alt="Java(TM) Logo" border="0" height="55" width="31" /></td></tr></tbody></table>
970N/A<table class="MstTblEnd" border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td><img name="RMRealm.mhCommon.EndorserLogo" src="images/masthead/masthead-sunname.gif" alt="Sun(TM) Microsystems, Inc." align="right" border="0" height="10" width="108" /></td></tr></tbody></table></div><div class="SkpMedGry1"><a name="SkipAnchor2089" id="SkipAnchor2089"></a></div>
1132N/A<div class="SkpMedGry1"><a href="#SkipAnchor4928"><img src="images/other/dot.gif" alt="Jump Over Tab Navigation Area. Current Selection is: Access Control" border="0" height="1" width="1" /></a></div>
1132N/A<form action="distAuthConfigurator.jsp" method="POST">
970N/A <td><input name="famProt" type="text" size="30" value="<%= famProt == null ? "" : famProt %>" /></td>
970N/A <td><input name="famHost" type="text" size="30" value="<%= famHost == null ? "" : famHost %>" /></td>
1105N/A <td><input name="famPort" type="text" size="30" value="<%= famPort == null ? "" : famPort %>" /></td>
1105N/A <td><input name="famDeploymenturi" type="text" size="30" value="<%= famDeploymenturi == null ? "" : famDeploymenturi %>" /></td>
970N/A <td><input name="distAuthProt" type="text" size="30" value="<%= distAuthProt == null ? "" : distAuthProt %>" readonly/></td>
970N/A <td><input name="distAuthHost" type="text" size="30" value="<%= distAuthHost == null ? "" : distAuthHost %>" readonly/></td>
970N/A <td><input name="distAuthPort" type="text" size="30" value="<%= distAuthPort == null ? "" : distAuthPort %>" readonly/></td>
970N/A <td><input name="distAuthDeploymenturi" type="text" size="30" value="<%= distAuthDeploymenturi == null ? "" : distAuthDeploymenturi %>" readonly/></td>
970N/A <td><input name="distAuthCookieName" type="text" size="30" value="<%= distAuthCookieName == null ? "" : distAuthCookieName %>" /></td>
970N/A <td><input name="lbCookieName" type="text" size="30" value="<%= lbCookieName == null ? "" : lbCookieName %>" /></td>
970N/A <td><input name="distAuthLBCookieName" type="text" size="30" value="<%= distAuthLBCookieName == null ? "" : distAuthLBCookieName %>" /></td>
970N/A <td><input name="distAuthLBCookieValue" type="text" size="30" value="<%= distAuthLBCookieValue == null ? "" : distAuthLBCookieValue %>" /></td>
970N/A <td><input name="debugDir" type="text" size="30" value="<%= debugDir == null ? "" : debugDir %>" /></td>
970N/A <td><input name="debugLevel" type="text" size="30" value="<%= debugLevel == null ? "" : debugLevel %>" /></td>
970N/A <td><input name="encryptionKey" type="text" size="30" value="<%= encryptionKey == null ? "" : encryptionKey %>" /></td>
970N/A <td><input name="appUser" type="text" size="30" value="<%= appUser == null ? "" : appUser %>" /></td>
970N/A <td><input name="appPassword" type="password" size="30" value="<%= appPassword == null ? "" : appPassword %>" /></td>
970N/A <td><input name="confirmAppPassword" type="password" size="30" value="<%= confirmAppPassword == null ? "" : confirmAppPassword %>" /></td>
970N/AAMDistAuthConfig.properties created at <%= configFile %><br>
970N/AClick <a href="index.html">here</a> to go to login page.