Controller.UserManagement
Controller.UserManagement has been available since FW version 1.7.0.
To implement Controller.UserManagement, the PLC Designer offers a User Management administration for the c5x0 runtime. Once enabled on the Controller, an anonymous online connection cannot be established with the device. This can be used, for example, to avoid accidentally overwriting a Controller PLC program or transferring it to the wrong Controller.
Activity Diagram
Controller.UserManagement: Active
Since firmware 2.0 the User Management is active per default. To change the User Management the first time a connection has to be established to the Controller with the default name and password. The PLC Designer must be connected online to the Controller.
Go to Device/Users and Groups/Synchronization
Device User Logon
For the initial login the credentials can be found in chapter Controller.AccountManagementGuidelines.
After entering the user name and the password a new password for the administrator has to be parametrized. This is done at the new opening window.
User Management Login
Enter a new password and keep it safe. Do not share this password with anyone.
If User Management has been disabled and is activated at a later time, the Controller must be restarted for the change to take effekt.
Controller.UserManagement: Add groups
To create different users in a project who have different permissions, these users must be assigned to different groups. The following section describes how to create these groups.
To add a new group go to "Device/User and Groups"
1. Click on "Add..." in the window "Groups"
2. Type the name of the group
3. Press "OK" to add the group
Add group
Controller.UserManagement: Delete groups
To delete a group do the following
1. Go to "Device/User and Groups"
2. Click in the window "Groups" on the group which has to be deleted
3. Click on "Delete"
4. In the opening window click on "Yes"
Delete group
Controller.UserManagement: Add user
To add a new user go to "Device/User and Groups" and click on
1. "Add..." in the window "Users".
In the opening window do the following:
1. Add a "Name" for the new user
2. Under "Default group" choose the group the user has to be part of
3. Enter password of the user under "Password" and confirm it under "Confirm password"
Click on "OK" to add the user.
Add user
Controller.UserManagement: Delete user
To delete a user do the following
1. Go to "Device/User and Groups"
2. Click in the window "Users" on the user which has to be deleted
3. Click on "Delete"
4. In the opening window click on "Yes"
Delete User
Controller.UserManagement: Enable and disable users
Controller.UserManagement in firmware version 2.0 does not support a persistent enabled/disabled state for individual user accounts. Therefore, user accounts cannot be manually disabled and subsequently re-enabled.
Revocation of user access is performed by deleting the respective user account. A deleted user account is no longer available for authentication. If access is required again, the account must be newly created and its password, group membership and required access rights must be configured again.
Controller.UserManagement: Change Password
After a configurable period, users must reset their passwords. However, they can also do this at any other time. To do so, they must first access User Management.
To change the password do the following
1. Go to "Device/User and Groups"
2. Click in the window "Users" on the user which has to be changed.
3. Click on "Edit"
In the window that opens, you can enter the new password and confirm it. As you type, the system will check that the password complies with the password policy.
Click ‘OK’ to confirm your entry, and the new password will be applied.
Controller.UserManagement: Remove
To remove the User Management (Attention: All users, groups and access rights will be removed) do the following
1. Right-click on the controller device in the device tree of the PLC project
2. Execute the "Reset Origin Device"
In the opening window
1. Choose "User management"
2. Confirm the process with clicking on "Yes"
3. Restart the Controller
Reset Origin Device [Device]
Controller.UserManagement: Change Access Rights
Read, write, and other permissions can be modified using the "Access Rights" parameter list. To do this, select this list as shown in the figure and click the green arrow to refresh the page if you have not yet connected to UserManagement.
Access Rights
Under "Access Rights," you can customize all rights across the entire context. The graphic shows how different groups have different rights.
Runtime objects
By double-clicking the current value under the rights, you can change it for the entire group.
Modify Rights
There are currently predefined groups.
EasyUIInterface = Access right for Easy UI
EngineeringInterface = Access right for Easy Starter, Application Loader, FW Loader
FilesystemInterface = Access permission to specific shared folders on the file system.
PubSub = Access permission to the PubSub configuration using an external client such as UA Expert.
SKSAccess = Access to the Security Key Service to pull keys for secure PubSub communication.
SKSConfiguration = Access to the SKS configuration to configure settings, such as the lifetime of the keys.
For each node, the setting of the authorization can be changed here.
The Administrator group has a special feature. The settings can be changed in the interface, but the group basically receives all rights.
Default Admin
Each Time when the User Management is (re-)activated the default Lenze Administrator is added.
This is possible over two ways:
1. After Controller restart when Enforced User Management is active
- Delete User Management via Reset Origin Device (User Management) then restart device
- After restart the default User Management is automatically restored (including Default Lenze Administrator) because by default a User Management is enforced
which can be deactivated in the Runtime Security Policies (besides Enforced Encryption and Anonymous Login)
2. After adding a new initial Administrator
- Delete User Management via Reset Origin Device (User Management)
- directly reactivate User Management by using User/Groups View.
- Then a dialog pops up to create a new user defined Administrator by providing username and password
- After Login with the user given credentials the Lenze default Administrator is restored which can be removed afterwards
- This behavior is independent from the Runtime Security Policy
Controller.UserManagement: Runtime Password Policy
The Runtime Password Policy has been available since Controller firmware version 1.13.0 in combination with PLC Designer 4.0.0. The user can activate the Runtime Password Policy, by clicking on the device in Device-Tree / Communication Settings / Device / Change Runtime Password Policy. Now, the settings for the policy of the device, in this case the Controller, can be done.
Runtime Password Policy
In the section `Password settings` the user can specify the minimum requirements of the passwords.
-
Minimum length
Minimum length of password characters (all characters count, whether they are letters, numbers, special characters).
-
Number of unique characters
Minimum number of different unique characters.
-
Requires lowercase letter
{ a-z, ä, ö, ü, ß }
-
Requires uppercase letter
{ A-Z, Ä, Ö, Ü }
-
Requires digit
{ 0-9 }
-
Requires special character
{ ^, °, !, “, §, $, %, &, /, (, ), =, ?, `, {, [, ], }, \, ´, +, *, ~, #, ‘, -,_, ., :, ,, ;, <, >, |, @, €, µ }
-
Must not contain username
The username string is not allowed in the password.
-
Activating or changing the password policy settings will take effect immediately. However, the changes only apply to the assignment of new passwords. Existing passwords remain valid, even if they do not comply with the policy.
In the section `Login Lock settings` the user can specify the lock after unsuccessful logins.
-
Scope
ADMINS: The Login Lock settings are valid for all users in the Administrator Group.
NONADMINS: The Login Lock settings are valid for all users except Administrators.
ALL: The Login Lock settings are valid for all users.
-
Maximum Retries
-
Lock duration [s].
Lock duration for this locked users in seconds.
-
If a user attempts to log in unsuccessfully a maximum number of times, their account will be locked. The login options of other users will remain unaffected.
Controller.UserManagement: Password Expiration
The Runtime Password Expiration is available since Controller Firmware Version 1.14.0 in Combination with PLC Designer 4.1.0. The User can activate the Runtime Password Expiration, with Click on Device in Device-Tree / Communication Settings / Device / Change Runtime Password Policy. Now the settings for the Policy of the Device, in this case the Controller, can be done. This function is deactivated by default.
-
Scope:
ADMINS: Password Expiration is valid and active for all admin-Users.
NON-ADMINS: Password Expiration is valid and active for all non-admin-Users.
ALL: Password Expiration is valid and active for all Users. -
Timeout [days]:
1 ... 1000 days for valid password until forced password renewal.
Runtime Password Expiration
The following sequencer describes the mechanism:
-
( 1 ) Firstly, user management must be activated on the device (in this case the controller) by the PLC Designer. A first user with example password A must be assigned.
-
( 2 )The user can then log in with user and his password A using PLC Designer or other communication channels.
-
( 3 ) If desired, the Runtime Password Policy can be activated.
-
( 4 ) After the set time has elapsed, all other communication channels can continue to log in with the known user and password A. These other communication channels can be, for example, the EASY Starter, the EASY Firmware Loader, the EASY Application Loader, the EASY UI Designer or an OPC UA Client.
-
( 5 ) The next time the user attempts to log in using the PLC Designer, they will be prompted to change the password.
-
( 6 ) Once the password has been changed, this password is also valid for the other communication channels.
For each node, the setting of the authorization can be set here.
The Administrator group has a special feature. The settings can be changed in the interface, but the group basically receives all rights.
Modify password of Standard Engineering User
When User Management is activated, the Administrator group is automatically created with the default Administrator user. A default password is also assigned automatically. It is recommended to change this default password and personalize it.
Add new User and Password with Engineering Access
The programmer can add a new or an existing user to the "Engineering" group. This gives every user the opportunity to connect via EASY Starter Suite.
For the communication between EASY Starter and the Controller a certificate has to be used. For more details have a look at the chapter EasyStarter.Certificate.
Grant Engineering Access to existing User/Group
The programmer can also inherit the rights of the ''Engineering'' group.
Anonymous login
In the settings under "Communication Settings / Device / Change Runtime Security Policy ..." there is an option in the "Device User Management" category called, which is "Allow anonymous login". This setting affects the OPC UA server. If anonymous login is prohibited, the user "Anonymous_OPCUAServer" and the group "Anonymous_OPCUAServer" will be deleted in the Controller.UserManagement.
-
Do not add a new user to the 'Anonymous_OPCUAServer' group.
If anonymous login is prohibited, the "Anonymous_OPCUAServer" user and the "Anonymous_OPCUAServer" group will be deleted. This means that the connection to the previously created user is also lost and he is left alone.
Controller.UserManagement: User for EASY UI Designer
User Management is activated in the delivery state since firmware 2.0.0. In this context, other tools (such as EASY UI Designer, EASY Starter, EASY Firmware Loader or EASY Application Loader) are required to authenticate to this Controller. These tools must identify and authenticate themselves before they can go online. The deactivation of the user administration as well as its settings takes place with the PLC Designer. For this purpose, the user has the possibility to change the necessary settings. This requires logging in as an administrator. For a sequence, see the following figure.
Use of the EASY UI Designer with deactivated user management
If the User Management on the Controller is deactivated, authentication from the EASY UI Designer is not necessary and access can take place without changing the default settings.
Create a user to be able to use the EASY UI Designer with activated user management
If User Management is activated on the Controller, the following steps must be completed:
-
When user management is activated by the PLC Designer, an "EasyUI" group is automatically created in the "Users and Groups" menu under "Groups". are no users in this group.
-
By adding a new user to the "EasyUI" group, that user can later authenticate to the controller with the name and password assigned here with the EASY UI Designer.
-
Existing users can be also added to the "EasyUI" group. This also gives them permission.
-
Furthermore, entire complete other groups can be added to the "EasyUI" group, thereby granting those groups the same permissions.
Hardening the controller by prohibiting the use of the EASY UI Designer
If the EASY UI Designer is not required for commissioning, operation and maintenance, the automatically created "EasyUI" group can be deleted. As a result, access is no longer possible with activated user management from the EASY UI Designer.
Hardening of the access rights by the created users for the »EASY UI Designer«
After the configuration of the user management described above, the rights for the "EasyUI" group can be restricted. This is done via the "Access Rights" tab. The setting can be found under "Runtime objects / Device / RemoteConnections / EasyUiInterface". With the settings Modify, View and Execute, the rights can be further restricted.
-
All users in the group have the same rights.
Controller.UserManagement: Security functionality verification
Activate the user management as described in the chapter “Controller.UserManagement: Activating”. Connect to the Controller. When the user management opens, type enter correct username and a wrong password. The Controller must deny the connection.
Connect to the Controller. When the user management opens, enter a wrong username and a correct password. The Controller must to deny the connection.