Knowledge Base > Article [0003]

How to Reset the sa Password in DualShield

Have you ever been locked out of DualShield Management Console? Don't panic. The account will be automatically unlocked in 3 minutes, if you have not changed the default Lockout system policy. That means that you can try again in 3 minutes, assuming that you still remember the correct password.

However, what if you have totally forgotten the password? Don't worry, the feature called "safe mode" comes to rescue!

Open Windows Prompt, go to tomcat\bin folder, then execute

tomcat6w.exe //ES//dualshield

 

You will see a dialog style application "DualShield Authentication Server Properties"

 

Navigate to the tab Java add -Ddual.safe.mode=true in Java Options , click Apply or OK button, then restart DualShield service.

Now, you can log into the Management Console without password. Please note that, in safe mode, you must access the management console from the local machine.

 

If you have DualShield Linux version installed, you should edit the file "/etc/init.d/dualshield" to achieve the same effect as in Windows, add the following line

-Ddual.safe.mode=true \

just after -Djava.io.tmpdir=$TMP_DIR \, see the image below.

 

You must restart the service after the modification.

Important: Once you have reset the sa password, make sure you disable the safe mode by removing the line -Ddual.safe.mode=true and restarting the DualShield service, otherwise you will leave a potential security hole.