For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect to LDAP via Broker


Getting started

  1. From the main menu, select Directory Integrations on the left.

  2. On the Directory Integrations page, click Add new directory.

  3. Select LDAP from the menu.

  4. Enter a name to use for this connection, and click Setup Directory.

Step 1: Download and install the Linux broker

Click the Download Now link to download the broker. The downloaded archive must be copied to and installed on a Linux server that is part of your Active Directory domain.

Step 2: Connection information

Under Connection Information, enter the connection details:

  • Server protocol type — select LDAP or LDAPS

  • Server URL — your LDAP server URL

  • Server Port — your LDAP server port

  • Base Domain — your LDAP base domain

Under Service Account Information, enter the details for your LDAP service account:

  • Service account username — the LDAP service account

  • Service account read-only — enable this if you only wish to read from this directory (cannot create new users)

  • Authentication method — select SIMPLE

  • Filter — enter a directory term to filter for, such as user

  • LDAP Query Filter (optional) — enter an LDAP query to filter results (see below)

Click Connect to save your settings and enable the directory.

LDAP query filter

LDAP query filters use a regular expression to keep only the desired directory parameters and discard the rest. Administrators can use them to control which users can authenticate to 1Kosmos — for example, allowing only active accounts. The field is optional and can be left blank.

Example:

Step 3: Map attributes

Click Add new mapping, then add each directory attribute and its corresponding 1Kosmos attribute:

Directory attribute
1Kosmos attribute

uid

uid

uid

username

mobile

phone

mail

email

givenname

firstname

sn

lastname

For example, to add the uid attribute:

  1. Click Add attribute mapping.

  2. Enter uid in the Directory attribute box.

  3. Select uid from the 1Kosmos attribute drop-down.

  4. Click Create.

Repeat for all attributes above. When finished, click Next, then click Complete to finish setting up your LDAP Broker user directory in AdminX.


Install and run the broker

Install and run the broker on Windows

Copy the broker you downloaded in Step 1 to your Windows server and unzip it.

The broker service must be kept running indefinitely for the connection between your directory and AdminX to remain valid.

Open a PowerShell terminal, change to the directory where you unzipped the broker, and start it:

If the script fails with a PSSecurityException error, run:

Follow the on-screen instructions to configure and start the broker service. Enter E to edit the existing configuration. An example session:

Broker logs. After the service starts, a new logs folder is created in the same directory from which the broker was started.

If you ever need to troubleshoot a broker connection, the logs folder provides the most information.

Removing the broker service. Stop the broker service first, then run the removal script from the unzipped directory:

If the script fails with a PSSecurityException error, run:

Install and run the broker on Linux

Copy the broker you downloaded in Step 1 to your Linux server and unzip it.

Open your command terminal, change to the directory where you unzipped the broker, and start it:

Follow the on-screen instructions to configure and start the broker service. Enter E to edit the existing configuration. An example session:

After saving your changes, the broker service starts.

Broker logs. After the service starts, a new logs folder is created in the same directory from which the broker was started.

Stopping the broker service. To stop the broker, run:

If you ever need to troubleshoot a broker connection, the logs folder provides the most information.

Last updated

Was this helpful?