This article describes how to change the maximum password length for the Whale Communications Intelligent Application Gateway (IAG) 3.6 or Microsoft IAG 2007 logon page.
To change the maximum password length for the IAG logon page, follow these steps:
- In Windows Explorer, locate the following file:
drive:\Whale-Com\e-Gap\von\InternalSite\Login.asp
- Open the Login.asp file in Notepad.
Note We recommend that you back up the Login.asp file before you modify it. - In the Login.asp file, locate the definitions of the HTML forms for the password. For example, the definitions may resemble the following.
<INPUT class="paramTextbox" TYPE="password" ID="password" NAME="password" maxLength="20" onkeypress="capsDetect(arguments[0]);" size="11">
Note There are three instances of the password definitions. How the different instances are displayed depends on the trunk authentication scheme. To easily find the instances, search for the following string: "password" maxLength
- Change the value of the maxLength attribute for all three instances. For example, if you want to set the maximum password length to 30 characters, use the following setting:
maxLength="30"
- Save the Login.asp file.
- In Windows Explorer, locate the following file:
drive:\Whale-Com\e-Gap\von\InternalSite\inc\WhaleRepository.inc
- Open the WhaleRepository.inc file in Notepad.
Note We recommend that you back up the WhaleRepository.inc file before you modify it. - In the WhaleRepository.inc file, locate the CheckCredentials function section.
- In the CheckCredentials function, locate the following statement.
if len(user_name) > 50 or len(password) > 20 then
- Modify this statement to set the maximum password length. For example, if you want to set the maximum password length to 30 characters, modify the statement as in the following example:
if len(user_name) > 50 or len(password) > 30 then
- Save the WhaleRepository.inc file.
After you finish these steps, you can back up the new Login.asp file. This backup can be used if an update overwrites your existing Login.asp.