Quickstart

Carry out the following steps to put the TwinCAT HMI LDAP Extension into operation.

Installation of the NuGet package

  1. Create or open an HMI project.
  2. Open the NuGet Package Manager (right-click on the References node of the HMI project in the Solution Explorer)
  3. The package source can be nuget.org or “Beckhoff Offline Packages” if the extension was previously installed via TcPkg.
  4. Search for Beckhoff.TwinCAT.HMI.Ldap and install the extension.
  5. The package is added to the project and the extension is started by the HMI server.

Configuring the extension

  1. Open the configuration page of the LDAP extension in the HMI project
  2. Enter the following settings on the “General” tab:
  3. Quickstart 1:
  4. Enter the following settings on the “LDAP Authentication” tab:
  5. Quickstart 2:
  6. Enter the following settings on the “HMI authentication” tab:
  7. Open the TwinCAT HMI Configuration tool window to create a new group mapping and open the dialog to create a new group (1, 2). Search for the desired LDAP group (3, 4) and activate the checkbox. Enter the name of the new group (5) and confirm with OK (6).
  8. Quickstart 3:
  9. In the HMI project, go to the configuration page of the TwinCAT HMI server on the “Security” tab and set the Select user by setting to Textfield. This allows the user names to be created via a text field.
  10. To test, drop a UserManagement Control onto the Desktop.view, open the LiveView and activate the authentication simulation (1). Select the LDAP extension (2), use your LDAP login data (3) and log in (4).
  11. Quickstart 4:
  12. The user management control shows the current user (1). When an LDAP user logs in for the first time, the appropriate HMI user is also configured (2).
Quickstart 5: