Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Errors and Broken Images with LabVIEW Internet Toolkit User Access Examples

Primary Software: LabVIEW Toolkits>>Internet Developers Toolkit
Primary Software Version: 5.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:

I cannot access password-protected front panels after I add new users.

I am using the LabVIEW Internet Toolkit, and I am trying to configure a directory or the front panel of a VI so that only validated users can access it. I am following the directions in the Access Control of Panel Images examples that ship with the toolkit, but I want to add my own set of usernames and passwords for accessing a particular panel.

I add my users to the password file in \internet\http\conf\pwd.txt by using the built-in Password User File Editor VI in \project\internet\_config\password.llb.. However, after I exit the Password User File Editor VI, I no longer can access any protected panels, including the Secret Panel VI example that ships with the toolkit. No username/password combination gives me access to the protected panels.

I see a broken image symbol in my browser window instead of the panel image and I have the following errors in my HTTP Server log:

2/1/00 5:37:32 PM: ERROR "localhost authorization: user pablo not found"

2/1/00 5:37:32 PM: ERROR "LVHTTP: G:\LABVIEW51\internet\http\conf\pwd.txt not a valid file"



Solution:

The problem here is with the syntax of the AuthUserFile directive in the default access configuration file (access.cfg) that ships with the toolkit.

The AuthUserFile path specified in access.cfg must be an absolute path (UNIX style, e.g. /c/labview/internet/http/conf/pwd.cfg). If the shipping version of the access.cfg file incorrectly specifies the relative path conf/pwd.cfg instead, the Password User File Editor VI incorrectly parses the access.cfg file when you make user access changes.

To correct this problem, manually change the AuthUserFile line in the access.cfg file.

On Windows with LabVIEW installed at the root of the C drive, delete AuthUserFile conf/pwd.txt and replace it with the following line:

AuthUserFile /c/labview/internet/http/conf/pwd.txt

In LabVIEW 5.0 or earlier, refer to the Internet Developer's Toolkit for G Reference Manual for more information about the syntax of the AuthUserFile directive. In LabVIEW 6.0 or later, refer to the LabVIEW Internet Toolkit Help for more information about the syntax of the AuthUserFile directive. After correcting the AuthUserFile directive in the access.cfg file, you should be able to make subsequent user access changes using thePassword User File Editor VI.



Related Links: Product Manual: LabVIEW Internet Toolkit User Guide
Product Manual: Internet Developers Toolkit for G Reference Manual
Internet Toolkit Troubleshooting Wizard

Attachments:





Report Date: 01/28/2000
Last Updated: 10/29/2007
Document ID: 1TREETMF

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit