Authorization of LDAP-server users in MasterSCADA 4D

Starting from version 1.3.3, MasterSCADA 4D  supports integrating the built-in Security system with Active Directory (AD) directory services databases deployed on a Linux server, based on using the LDAP protocol.

LDAP (Lightweight Directory Access Protocol) is an open, cross-platform protocol used for directory service authentication. The term  LDAP server is used to denote the server storing the LDAP directory databases.


Example of Linux LDAP Server Settings

In this example, groups and users from a FreeIPA server are used as the AD.

FreeIPA is open-source software, a specialized directory service designed to create an environment in Linux OS that allows centralized user authentication management. The functionality of FreeIPA is similar to Active Directory.

The following figures show the users and groups created by the administrator:

1.png

2.png

Each user has their own settings. For example, if you navigate to the user apetrov, you can view: the full name, account name, their unique identifier UID, and account alias:

3.png

This is just a small part of the service settings, which is mandatory for the initial creation of a user.

If you go to the User Groupstab, you can see the list of groups to which the selected user belongs. In this case, apetrov is a member of the ipausers groups (the server's primary group) and operators (created by the administrator):

4.png

Groups have two mandatory parameters: name and id:

5.png

If you go to the Users tab, you can launch the list and see the number of users added to the selected group. The user apetrov has been added to the operators  group:

6.png

Interaction between MasterSCADA 4D and the LDAP Server

To be able to log into the HMI client under a specific LDAP server user, the following new properties of the Security element need to be configured:

7.png

Active Directory Server Address. This field can contain either the DNS or IP address of the server. If no value is set, the first list of users will not be displayed in the authorization window when the HMI client attempts to connect.

Active Directory Server Type. A dropdown list with possible values: Active Directory (directory service used in Windows OS) and LDAP (directory services operating via the LDAP protocol).

Important! The LDAP server type can only be set if the runtime is located on a device with a Linux OS. The runtime on Windows OS only supports the Active Directory server type.

It is also necessary to create roles in the  Security element corresponding to the LDAP server groups. Users created in MasterSCADA 4D can also be added to the created roles:

8.png

Next, access rights must be assigned to the created roles. Be sure to configure the Window Opening and Control access rights:

9.png

10.png

After this, in runtime mode, when connecting the HMI client, you can enter not only the username created in MasterSCADA 4D but also the LDAP-server but also the:

11.png

If incorrect user authentication data is entered, a corresponding error will be displayed:

12.png

If the LDAP server is unavailable, a comment will also appear in the HMI client after the authorization attempt:

13.png

If  LDAP  is selected in the Active Directory Server Type  property of the  Security  element panel for a project running in a  Windows OS runtime the connection to the server is not established, and the error  Incorrect server type is displayed:

14.png

To obtain information about changes in LDAP server users, you can use a special service function block (FB) UsersGetADUserGroups.

To output information about the group (FB parameter groups) and the full name of the client (FB parameter full name) of the LDAP server, you need to issue a command containing the FB's input parameters: server, name, password (server name, login, and password) of the user:

15.png

In case of unsuccessful operation of the function block, an error will be output:

- incorrectly entered server user data:

16.png

- LDAP server is unavailable:

17.png

Now, in the properties panel of the program containing the FB UsersGetADUserGroups, in the Task category, it is recommended to set the  Execution Method property to On Call:

18.png

Обсуждение

Log in or register to participate in the discussion.

Thanks! You will be contacted soon.

Write to us
Contact person: 

Request topic 
Message:

Thanks! You will be contacted soon.

Contact manager
Contact person:

Describe the project:

Attach file:

1 pdf/doc/docx file, max 10MB

Thank you for contacting us! The download links have been sent to your email

We invite you to cooperate

Contact person:

Request topic

Message:

Thank you! Your application has been accepted!

Cooperation request
Your cooperation goal with us:
University name:

City:

Education form: 
Contact person:

Thanks! You will be contacted soon.

Send resume
Contact person:

Specify education and specialty:

Short motivation letter: test
Resume file:

1 pdf/doc/docx file, max 10MB
Describe work experience:

Thanks! You will be contacted soon.

Event registration
Contact person:

Thanks! You will be contacted soon.

Get consultation
Contact person:

Describe the project:

<

Thanks! You will be contacted soon.

Start training
Contact person:

Thank you for contacting us! The download links have been sent to your email

Try software

Leave your contact information and we will send you a link and instruction.

You will get access to the demo project.

Contact person:

Comment:

Thank you for contacting us! The download links have been sent to your email

Try software on your model

Leave your contact details - we'll send installation link and instructions.

You can test the software on your information model.

Contact person:

Comment:

Thank you! Your application has been accepted!

Request configuration
Contact person:

<

Number of tags for each MasterOPC copy separated by semicolons (e.g. 500;1000):

Automation object:

Details:

Additional wishes:

Additional documents:

Up to 2 pdf/doc/docx/odt files, max 10MB each

Thank you! Your application has been accepted!

Request configuration
Contact person:

Configuration parameters
Number of external I/O points:
Number of server I/O:
Number of additional clients:
Protocols for lower-level communication:
Operating system in the project:
ToR, block diagram, or other documents:

Up to 2 pdf/doc/docx/odt files, max 10MB each
Additional information:

Thank you! You have successfully registered

Registration is successful

Registration
First name

Field is required

Last name

Field is required

Middle name

Field must not contain digits

Phone

Invalid phone number

E-mail

Invalid email

Company

Field is required

Tax ID (INN)

Password

Field is required

Confirm password

Field is required

Письмо для смены пароля отправлено

Восстановление пароля
E-mail

Invalid email

Вернуться к началу страницы