show the entry list
WinCC SIMATIC Logon / AUA -- Product information -- Information on SIMATIC Logon / Advanced User Administrator
Using a chip card reader, how can a default user be logged on automatically while the chip card is pulled through?
What support does Siemens AG offer to make products comply with FDA regulations?
What support does Siemens AG offer to make use of WinCC comply with FDA regulations?
How can you configure a chip card with SIMATIC Logon, with which you can log onto each local computer?
Why isn't the group selection dialog displayed any longer in WinCC V6.2 and higher?
How can you use the "GetSignature" function as of SIMATIC Logon V1.4?
What is the standard password of the user "Administrator" in the WinCC User Administrator?
Why isn't the user currently logged on shown at Runtime?
How can you replace the Windows on-screen keyboard of SIMATIC Logon (from V1.4) with the ProTool keyboard so as not to reach the operating system during Runtime?
How can you verify a logged on user at runtime when using SIMATIC Logon (as from V1.3)?
How can you verify a logged on user at runtime when using SIMATIC Logon up to version V1.2 SP1?
How do you call the SIMATIC Logon dialog box by means of C-Script?
The WinCC Login Box appears instead of the Logon Box in WinCC Runtime.
Logon option -- Setting up development environments -- Parameterizing systems
How can you automatically log in a default user after a reboot without using the Login Box?
Using a chip card reader, how can a default user be logged on automatically while the chip card is pulled through?
Why isn't the user currently logged on shown at Runtime?
How can you verify a logged on user at runtime when using SIMATIC Logon (as from V1.3)?
How can you verify a logged on user at runtime when using SIMATIC Logon up to version V1.2 SP1?
How can you configure a chip card with SIMATIC Logon, with which you can log onto each local computer?
SIMATIC Logon window in CFC/SFC
How do you block a user account after a user-definable number of failed attempts to login?
How can you have entries generated by SIMATIC Logon in the password-protected file displayed, printed out or exported?
How can you restore the WinCC Logon Box in the OS Runtime when SIMATIC Logon is installed on the computer?
Why is a user assigned to the "Emergency Operator" group when logging on in WinCC RT?
When using SIMATIC Logon, why is there a user already logged on after starting WinCC RT?
Why, when implementing SIMATIC Logon, is only the logged-on user displayed in the WinCC User Administrator during Runtime?
Why does a C script "PWRTSilentLogin" only work with WinCC users and not with SIMATIC Logon users?
How can you verify a logged on user at runtime when using SIMATIC Logon up to version V1.2 SP1?
Part number:

Instructions:
The WinCC User Administrator does not provide any functions by default that can be used to verify currently logged on users through password querying. WinCC has functions for triggering and executing a logon procedure. However, this means that there is a completely new logon even if the current user name is used again for the logon. Logon is usually linked to a picture change (calling the Start picture) and the closing of all faceplates.

Aim:
Often, just before execution of a switching action, there is a demand for checking the user currently logged on by an additional password query. There is not to be a renewed logon. After successful verification of the user the switching action is to be executed and the operator action stored as an operator input message. This prevents unauthorized operator actions, e.g. when the user currently logged on is absent for a brief time without logging off from the system.

Solution:
If you use the SIMATIC Logon option up to version V1.2 SP1, you have the functions of the so-called AUA interface available to access the SIMATIC Logon user administration. This present entry uses the "VerifyUser()" and "GetSignature()" functions of the AUA interface to verify the user currently logged on at runtime.

Warning!
Note that the AUA interface is no longer supported as from version SIMATIC Logon V1.3. Entry 24458155 shows how to proceed in that case.
 
No. Description
1 "VerifyUser()"
The function is declared as follows:

LPCSTR WINAPI VerifyUser (LPCTSTR UserID, LPCSTR Password);

The  "UserID" and "Password" parameters are assigned to the function as character strings. The function checks for the password for the "UserID" (user name) transferred. Once the password has been verified the function returns the character string "ok" and in the case of error it returns an error text.

2 "GetSignature()"
The function is declared as follows:

BOOL (LPCTSTR UserID);

The  "UserID" parameter is transferred to the function as a character string. The function opens the "Electronic Signature" dialog and presets the "UserID" field with the "UserID" transferred.


Fig. 01

Now the user can enter the relevant password in the "Password" field. Click on the "Sign" button and the function checks the transferred UserID and password. Once the user specified has been verified the dialog closes and the function returns the value "TRUE". If there is an error, the "Electronic Signature" dialog remains open. You can enter the password again. If you press the "Cancel" button, the dialog closes and the function returns the value "FALSE".

This entry provides the script "SimaticLogonVerifyUser()" to execute user verification at runtime. The requirement for the script is the SIMATIC Logon option The following table describes how to use this script and adapt it to your requirements.
 
Step Description
1 Copy the C function for user verification into the WinCC project
The following download contains the "simaticlogonverifyuser.fct" file.

WinCC_VerifyUser.zip ( 3 KB )

Copy this file into the "library" directory in your WinCC project directory. Open the "Global Script C" editor and execute the "Tools > Regenerate Header" menu command. Then the "SimaticLogonVerifyUser()" function is available as project function. You must execute this step also in the WinCC project of a client(MultiClient) if there is to be operation with user verification on a client.

Note:
The structure of the "SimaticLogonVerifyUser()" function is described below.

BOOL SimaticLogonVerifyUser(char* pszUserID, char* pszPassword);

The function checks whether valid character strings have been transferred in the parameters "pszUserID" and "pszPassword". It transfers the values to the "VerifyUser()" function. If the value "ZERO" has been transferred in the parameter "pszUserID", the user currently logged on is acquired and transferred. Upon successful verification by the "VerifyUser()" function, the function returns the value "TRUE". If the "VerifyUser()" functions detects an error, the "GetSignature()" function is called along with the relevant user. If the user now enters the valid password in the "Electronic Signature" dialog and acknowledges the input with the "Sign" button, the function returns the value "TRUE". If the "Electronic Signature" is aborted, the function returns the value "FALSE".

2 Use the C function for user verification
You can use the "SimaticLogonVerifyUser()" function directly in the process image or in a faceplate. The following figure shows the call of the function by clicking on a button.


Fig. 02

Change this example accordingly to meet your requirements. In this example, after the "SimaticLogonVerifyUser()" function has been called successfully, an operator input message is triggered and the relevant WinCC tag for switching on the pump is set.

Note:
The "ISALG_OperationLog()" function is simply used here as an example for generating an operator input message. Entry ID 24325381 provides detailed information on generating an operator input message. Note that when generating an operator input message, the system automatically enters the name of the user currently logged on in the "User Name" system block for display in the WinCC Alarm Control. Therefore in this example the value "ZERO" in the "pszUserID" is transferred purposely to the "SimaticLogonVerifyUser()" function, so that there is no difference between the user currently logged on and the user actually verified.

 Entry ID:24458070   Date:2007-01-11 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour