Importing Users via Lightweight Directory Access Protocol

Key Manager Plus integrates with the LDAP servers in your environment, allowing you to import users from Microsoft Active Directory and OpenLDAP directories. The user database can be regularly updated through the synchronization option provided in the UI, and users can leverage LDAP authentication for access, bypassing the local authentication provided by Key Manager Plus. This integration works with both Windows and Linux installations of Key Manager Plus, it is particularly useful for Linux installations, since the Active Directory import option works only on Windows installations.

This document covers the following topics in detail:

1. Importing Users from LDAP

Follow the steps below to import the users from LDAP:

  1. Navigate to Settings >> User Management >> LDAP and click the Add button on the LDAP Servers page.
  2. Enter the LDAP Provider URL and Secondary Provider URL (optional) in the format protocol: //LDAP-server-host:port (for example, ldap://192.168.4.83:389).

    Additional Detail

    Use ldap:// for standard LDAP connections or ldaps:// for LDAP over SSL/TLS, as supported by your configuration.

  3. Choose whether the connection between the LDAP server and Key Manager Plus should be over an encrypted channel, SSL or Non-SSL.
    ldap-integration-1
  4. If you choose SSL mode, the LDAP server should be serving over SSL on port 636, and you will have to import the LDAP server's root certificate, LDAP server's certificate, and all other certificates that are present in the respective root certificate chain into the Key Manager Plus' server machine's certificate store. To import the certificates, open a command prompt, navigate to the <Key-Manager-Plus-Installation-Directory>\bin folder, execute the specified command, and restart the Key Manager Plus server.

    For Windows:

    importCert.bat <Absolute Path of certificate>

    For Linux:

    importCert.sh <Absolute Path of certificate>
  5. Enter the Username and Password of a user already present in LDAP, used for authenticating the connection. Enter the username in the format your users use to log in - for example, cn=Eric,cn=Users,o=kmp,c=com.
  6. Enter the Base DN, which specifies the starting point in the LDAP directory tree for directory lookups. Ensure that it matches your LDAP structure exactly. Do not include spaces around commas or the = symbol, and preserve the case of the entries as required by your directory configuration.
  7. If you want to import only specific users, enter a Search Filter. For example, to import only users in the Managers category, a typical search filter would be ou=Managers,ou=Groups,o=kmp,c=com.
  8. Enter a Group Name. Key Manager Plus automatically creates a user group with all imported users under this name. If synchronization is enabled, this user group is kept in sync based on the search filter you specify.
  9. Select your LDAP Server Type - Microsoft Active Directory or OpenLDAP.
  10. Enter the First Name Attribute Label and Last Name Attribute Label - the LDAP attribute that uniquely identifies the object. For AD, this is typically distinguishedName; for OpenLDAP, dn.
  11. Click Import & Save to start the import immediately and to save the LDAP configuration. If you click Save instead, the LDAP configuration will be saved but the user import will not begin until you click Import.

Key Manager Plus begins adding all users from LDAP as soon as you click Import & Save. In subsequent imports, only new LDAP entries are added to the local database. Each imported user is notified by email about their account, along with a password they can use to log in to Key Manager Plus while LDAP authentication is disabled.

2. Configuring Synchronization and Managing LDAP Server Details

Key Manager Plus can automatically add newly created LDAP users and keep the user database in sync. On the LDAP Servers page, you can view all integrated LDAP servers, add new servers, edit existing server configurations, synchronize servers, or delete existing servers using the corresponding icons:

  • Edit - Edit the server details of the selected LDAP server.
  • Users - View all users imported from the selected LDAP server.
  • Import Users - Sync Key Manager Plus with the LDAP server to keep the user database updated. Select Delete users if deleted in LDAP to remove users from Key Manager Plus that have been deleted in LDAP, as part of the sync operation.
    ldap-integration-2

To schedule automatic LDAP synchronization, click the calendar icon at the top-right corner of the LDAP Servers page:

  1. Click Enable and specify a Recurrence Type - Daily, Weekly, or Monthly.
  2. Enter a Start Time, and select other fields applicable to the recurrence type you selected. This is the interval at which Key Manager Plus queries the LDAP server to keep the user database in sync — it can range from minutes to hours or days.
  3. Select Delete users if deleted in LDAP to remove deleted LDAP users from Key Manager Plus during each sync.
  4. Click Save to save the LDAP sync schedule.
    ldap-integration-3

3. Assigning Roles to Imported Users

All users imported from LDAP are assigned the Operator role by default. To assign a different role to specific users, or to assign SSH user accounts of discovered resources, refer to the Modify User Details section. To remove an imported user, refer to the Delete a User Section.

4. Enabling LDAP Authentication

Once LDAP users are added to Key Manager Plus, they can use their LDAP credentials to access the application. To enable this, click Enable LDAP Authentication below the LDAP server details on the LDAP Servers page - this makes LDAP authentication the default authentication type for your users.

At the login page, users can choose the LDAP Authentication option and log in with their LDAP credentials. Key Manager Plus also allows LDAP users to log in independently using local authentication, specifying the credentials provided to them by their administrator — users can choose between the two authentication modes at the time of login.
ldap-integration-4




Top