Hi WHD Users,
In case you feel the need to increase or decrease the Password Field Length to a higher number for the Login on both Tech and Client accounts, you can use the following steps:
NOTE: This is not supported by SolarWinds Tech Support as this change will revert when you upgrade your WHD system.
For WHD 12.2:
1. Make a copies of the file below to a directory for the whole modification process:
<webhelpdesk>/bin/webapps/helpdesk/WEB-INF/lib/whd-web.jar
2. Rename the file from whd-web.jar to whd-web.zip
3. Create a folder named 'whd-web' and unzip the file to that folder
4. Edit the following files with their respective lines to change with a Text Editor like Notepad++:
The variable 'maxlength' can be any integer.
Resources/WHDMain.wo
From<<<<<<<<<<==================
PasswordField: MDSPasswordField {
value = password;
size = 20;
class = "tabletext";
maxlength = 50;
name = "password";
autocomplete = "off";
id = "password";
}
To=============>>>>>>>>>>>>>>>
PasswordField: MDSPasswordField {
value = password;
size = 20;
class = "tabletext";
maxlength = 100;
name = "password";
autocomplete = "off";
id = "password";
}
Resources/TechBasics.wo/TechBasics.wod
From<<<<<<<<<<==================
Password: MDSPasswordField {
value = aTechnician.password;
isEditMode = parent.editMode;
}
To=============>>>>>>>>>>>>>>>
Password: MDSPasswordField {
value = aTechnician.password;
isEditMode = parent.editMode;
maxlength = 100;
}
Resources/ClientContact.wo/ClientContact.wod
From<<<<<<<<<<==================
PasswordConfirmationTextField2: MDSPasswordField {
value = specifiedPassword;
name = "manualPassword";
}
To=============>>>>>>>>>>>>>>>
PasswordConfirmationTextField2: MDSPasswordField {
value = specifiedPassword;
name = "manualPassword";
maxlength = 100;
}
5. Zip the files within the whd-web folder and rename it from .zip to .jar. (Do not zip the folder itself or the resulting file will not deploy as JAR)
6. On the WHD directory: <webhelpdesk>/bin/webapps/helpdesk/WEB-INF/lib/, rename the original file from whd-web.jar to whd-web.bak
7. Copy the modified JAR file to the directory <webhelpdesk>/bin/webapps/helpdesk/WEB-INF/lib
8. Restart WHD.
For WHD 12.1 or below:
You will need to change following files
- <WHD>\bin\webapps\helpdesk\WEB-INF\Helpdesk.woa\Contents\Resources\ClientContact.wo\ClientContact.wod (add attribute)
- <WHD>\bin\webapps\helpdesk\WEB-INF\Helpdesk.woa\Contents\Resources\TechBasics.wo\TechBasics.wod (add attribute)
- <WHD>\bin\webapps\helpdesk\WEB-INF\Helpdesk.woa\Contents\Resources\WHDMain.wo\WHDMain.wod (change value from 50 to 100)
1. Edit the file <WHD>\bin\webapps\helpdesk\WEB-INF\Helpdesk.woa\Contents\Resources\WHDMain.wo\WHDMain.wod
2. Find 'MDSPasswordField' attribute and add 'maxlength = 100;' between curly brackets; e.g.
FROM: MDSPasswordField {
value = aTechnician.password;
isEditMode = parent.editMode;
}
TO: MDSPasswordField {
value = aTechnician.password;
isEditMode = parent.editMode;
maxlength = 100;
}
3. Edit the file <WHD>\bin\webapps\helpdesk\WEB-INF\Helpdesk.woa\Contents\Resources\ClientContact.wo\ClientContact.wod
4. Add the attribute "maxlength = 100;" like below:
FROM:
PasswordConfirmationTextField2: MDSPasswordField {
value = specifiedPassword;
name = "manualPassword";
}
TO:
PasswordConfirmationTextField2: MDSPasswordField {
value = specifiedPassword;
name = "manualPassword";
maxlength = 100;
}
5. Edit the file <WHD>\bin\webapps\helpdesk\WEB-INF\Helpdesk.woa\Contents\Resources\TechBasics.wo\TechBasics.wod
6. Add the attribute "maxlength = 100;" like below:
FROM:
Password: MDSPasswordField {
value = aTechnician.password;
isEditMode = parent.editMode;
}
TO:
Password: MDSPasswordField {
value = aTechnician.password;
isEditMode = parent.editMode;
maxlength = 100;
}
7. Restart WHD.
I hope this will helps!.
AGAIN, THIS IS WILL NOT STAY AFTER AN UPGRADE THUS, YOU WILL HAVE TO DO THE SAME PROCESS EVERY AFTER UPGRADE.