Guest User

ad reg

a guest
Apr 2nd, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. -->
  2.  
  3. <%
  4. boolean DEBUG = false;
  5.  
  6. String directoryDomainSuffix = "alpha01.alphacomm-usa.com";
  7. String ldapURL = "ldap://alpha01.alphacomm-usa.com:389";
  8.  
  9.  
  10. String domainCode = "127000000001";
  11. String wikidIPAddress = "127.0.0.1";
  12. int wikidPort = 8388;
  13. String wikidClientCert = "/opt/WiKID/private/localhost.p12";
  14. String wikidClientPass = "********";
  15. String cACertStore = "/opt/WiKID/private/CACertStore";
  16. String cACertStorePass = "changeit";
  17. // NOTE: DO NOT CHANGE! The passphrase above "changeit" is the default passphrase for the CA trust store as delivered
  18. // by Sun with Java. If you change this value you will also need to change the passphrase used to
  19. // encrypt the CACertStore file. You must change both if you change either. Just change "passphrase".
  20.  
  21. wClient wc;
  22. if (getServletConfig().getServletContext().getAttribute("ADwClient") == null) {
  23. wc = new wClient(wikidIPAddress, wikidPort, wikidClientCert, wikidClientPass, cACertStore, cACertStorePass);
  24. if (wc.isConnected()) getServletConfig().getServletContext().setAttribute("ADwClient", wc);
  25. } else {
  26. wc = (wClient) getServletConfig().getServletContext().getAttribute("ADwClient");
  27. }
  28.  
  29. String message = "";
  30. // capture post data
  31. String step = request.getParameter("step");
  32. String userid = request.getParameter("userid");
  33. String password = request.getParameter("password");
  34. String registration_code = request.getParameter("registration_code");
  35.  
  36.  
  37. // Determine the state of the page
  38. int state = -1;
  39.  
  40. if (wc != null && wc.isConnected()) {
  41. state++;
  42. }
  43. if (state == 0) {
  44. userid = userid == null ? "" : userid;
Advertisement
Add Comment
Please, Sign In to add comment