How to Set Access Rights for Multiple Web Apps Registered in Systemlink

Updated Sep 22, 2023

Reported In

Software

  • SystemLink

Issue Details

In SystemLink Server 2020 R1 and earlier versions. When multiple Web Applications are registered, it is necessary to rewrite and create some configuration files to set individual access rights.

Solution

When you register Web Application in SystemLink, a folder containing Web Application components is created in the following folder (webvi_plugin by default).
C:\Program Files\ National Instruments\Shared\Web Server\htdocs\plugins

In this case, access rights are set individually for the registered state of two Web Applications, webvi_plugin and webvi_plugin3.

Change configuration file

Rewrite 52_webvi_plugin.conf in the the folder C:\Program Files\National Instruments\Shared\ Web Server\conf\conf.d

Create <Directory> tags for webvi_plugin and webvi_plugin3 respectively.
 
<Directory htdocs / plugins / webvi_plugin3>
   #Tell the privilege module to use webvi_plugin3.htpriv
   Use NIAuthnEnableBrowsers
   Use NIAuthnRequirePrivilege webvi_plugin3 ViewResource
</ Directory>
<Directory htdocs / plugins / webvi_plugin>
   #Tell the privilege module to use webvi_plugin.htpriv
   Use NIAuthnEnableBrowsers
   Use NIAuthnRequirePrivilege webvi_plugin ViewResource
</ Directory>


Access right settings

Create a *.htpriv for each Web Application in the following folder and specify the role to give proper access. Here, wabvi_plugin can be accessed without logging in, and wabvi_plugin3 can be viewed and used only when logged in with an account with admin privileges.
C:\Program Files\National Instruments\Shared\Web Server\conf\htpriv.d

access right settings order