Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -->
- <%
- boolean DEBUG = false;
- String directoryDomainSuffix = "alpha01.alphacomm-usa.com";
- String ldapURL = "ldap://alpha01.alphacomm-usa.com:389";
- String domainCode = "127000000001";
- String wikidIPAddress = "127.0.0.1";
- int wikidPort = 8388;
- String wikidClientCert = "/opt/WiKID/private/localhost.p12";
- String wikidClientPass = "********";
- String cACertStore = "/opt/WiKID/private/CACertStore";
- String cACertStorePass = "changeit";
- // NOTE: DO NOT CHANGE! The passphrase above "changeit" is the default passphrase for the CA trust store as delivered
- // by Sun with Java. If you change this value you will also need to change the passphrase used to
- // encrypt the CACertStore file. You must change both if you change either. Just change "passphrase".
- wClient wc;
- if (getServletConfig().getServletContext().getAttribute("ADwClient") == null) {
- wc = new wClient(wikidIPAddress, wikidPort, wikidClientCert, wikidClientPass, cACertStore, cACertStorePass);
- if (wc.isConnected()) getServletConfig().getServletContext().setAttribute("ADwClient", wc);
- } else {
- wc = (wClient) getServletConfig().getServletContext().getAttribute("ADwClient");
- }
- String message = "";
- // capture post data
- String step = request.getParameter("step");
- String userid = request.getParameter("userid");
- String password = request.getParameter("password");
- String registration_code = request.getParameter("registration_code");
- // Determine the state of the page
- int state = -1;
- if (wc != null && wc.isConnected()) {
- state++;
- }
- if (state == 0) {
- userid = userid == null ? "" : userid;
Advertisement
Add Comment
Please, Sign In to add comment