This is an old revision of the document!


Changing a password via a web interface

Goal

Under the “Home” tab on the router's web interface, you can reset the passwords for any additional users you've set up.

Prerequisites

  • NetModule Wireless Router with wireless connection
  • NetModule Software 5.0.0.104 or newer
  • Not available for legacy products NB1600, NB2700, NB3700, NB3710

The wiki was tested with router software 5.0.0.104


1. Set up the SDK script on the router

In the first step, the SDK function is activated and further options are specified.

  1. The function is activated under point 1.
  2. Under point 2, we free up memory for the execution of the script. For this SDK script, 50 MB is sufficient; only a few variables are stored temporarily for the execution of the program.
  3. Under point 3, we activate monitoring to check whether the script is still being processed correctly. We use the router's core function in the program. Monitoring makes sense here.

In the second step, we store the SDK script in Job Management.

First, we store the SDK script under Job Management. Using the plus button under point 3, we add a script.

After pressing the plus button, a new window opens with settings.

First, assign a name to the SDK process. In the second step, you can insert the SDK script using the “upload” function. You can open the script by clicking on the “show code” button in the WIKI and then download the “web_changing_password.are” file. Once you have saved the file on your computer, you can search for it in step 3 using Browse and select it. The last step, “Apply“, saves everything to the router.

The “web_changing_password.are” script can be downloaded via the “show code” link.

show code

Next, set up the trigger that will start the script.

Here, too, pressing the plus button opens a new window with insertion options.

Again, start by assigning a name to the SDK process. Use the “event-based” option as the trigger type for this script. Select the “sdk-startup” event from the list. Why do we use these settings for the script? The script was created as an endless script. The commands are controlled and executed in the script. Errors are output and the program is then terminated. The event starts the script when the daemon of the SDK program is started by the router. This is also advantageous if the watchdog restarts the SDK daemon on the router. In this case, the script is also reactivated. The “Apply” button saves the changes back to the router.


In the last step, we activate the SDK script on the router.

Again, enter the name for the SDK process first. If you want to activate the first SDK script on the router, the two fields “Trigger” and “Script” are already filled with the options you set up earlier. If you already have multiple scripts, you must select the correct option (Trigger and Script) from the pull-down menu. As before, click “Apply” to apply the setting to the router. In this case, the SDK script is also activated.


Using the Administration option under point 1, you can view information under the Status tab, point 2, to see whether the SDK script has started correctly and is running without errors.

Please do the same for the second script on the router.

The “cryptpw_and_config_set.are” script can be downloaded via the “show code” link.

show code


2. Important settings in the SDK script

In the script cryptpw_and_config_set, the admin password still needs to be set.

Enter the password in these two fields.

For the Telnet service, please set up a firewall rule so that the service can only be accessed locally.

Change the Telnet port to port number 65023.

The website's layout

Once all scripts have been saved, the next menu item will appear under the Home tab. Under item 2 , you can select users from the drop-down menu. For items 3 and 4, you must enter a 10-digit password. Click the Submit button to execute the command.


3. Additional information

The “web_changing_password.are” script.

show code

The “cryptpw_and_config_set.are” script.

show code

If you want to automatically reset passwords to a fixed default password, you can use these two scripts.

The script resets the stored user passwords to a default password every month. The “Set_a_default_password_every_month.are” script.

show code

The script resets the stored user passwords to a default password every week. The “Set_a_default_password_every_week.are” script.

show code