getServerInfo.jsp revision 7c2b35fb4b3e07fac18cadded895cff744104de6
1051N/A $Id: getServerInfo.jsp,v 1.6 2008/09/04 00:34:01 rajeevangal Exp $
1051N/A if ("POST".equals(request.getMethod()) != true) {
1186N/A response.sendError(405);
1186N/A String username = request.getParameter("IDToken1");
1186N/A String password = request.getParameter("IDToken2");
1304N/A response.sendError(400);
1186N/A response.sendError(401);
1111N/A while (lc.hasMoreRequirements()) {
1247N/A Callback[] callbacks = lc.getRequirements();
1777N/A for (int i = 0; i < callbacks.length; i++) {
1111N/A nc.setName(username);
1051N/A missing.add(callbacks[i]);
1777N/A if (missing.size() > 0) {
1051N/A response.sendError(401);
lc.submitRequirements(callbacks);
response.sendError(401);
SSOTokenManager mgr = SSOTokenManager.getInstance();
Map bMap = bootstrapData.getDataAsMap(0);
String serverid = WebtopNaming.getLocalServer();
replPort = ""+ AMSetupUtils.getFirstUnusedPort("localhost", 50889, 1000);
append(URLEncoder.encode(dsprotocol, "UTF-8")).append("&");
append(URLEncoder.encode(dshost, "UTF-8")).append("&");
append(URLEncoder.encode(dsbasedn, "UTF-8")).append("&");
append(URLEncoder.encode(dsmgr, "UTF-8")).append("&");
append(URLEncoder.encode(dspwd, "UTF-8")).append("&");
append(URLEncoder.encode(encKey, "UTF-8"));
buf.append("&ENCLDAPUSERPASSWD=").append(
URLEncoder.encode(defAgentPwd, "UTF-8"));
buf.append("&existingserverid=").append(
URLEncoder.encode(serverid, "UTF-8"));