Enable basic authentication for the failover web console
By default, the HTTP connection does not provide any authentication, and anyone on your network can connect to the failover web console. However, you can configure basic user authentication to restrict access to the console.
The user name is always administrator, and you can only define a password for this user name.
To enable basic authentication and define a password:
-
On node1, open your preferred command-line shell. To open Windows Command Prompt, open the Windows Start menu and type cmd.
To change your current directory, type the following command:
cd C:\Program Files\Milestone\XProtect Management Server Failover\safekit\web\bin
-
Run the following command:
htpasswd.exe -cb "C:\Program Files\Milestone\XProtect Management Server Failover\safekit\web\conf\user.conf" administrator {enter your password}
-
Open File Explorer and navigate to C:\Program Files\Milestone\XProtect Management Server Failover\safekit\web\conf. Open the httpd.conf file with a text editor, for example Notepad.
-
Search for Define usefile and remove the # symbol before it. Save the file and close the text editor.
-
Open Windows Command Prompt and navigate to C:\Program Files\Milestone\XProtect Management Server Failover\safekit. To change your current directory, type the following command:
cd C:\Program Files\Milestone\XProtect Management Server Failover\safekit
-
Run the following command:
safekit.exe webserver restart
-
To enable basic authentication on both nodes, repeat the steps on node2. Since the httpd.conf file is not replicated, specify the same password on both nodes.
-
Refresh the failover web console page. Your browser prompts you for a user name and password. Enter administrator as your user name and the password you defined in step 3.