---
title: "Directory (LDAP and Active Directory)"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:handbook-administration-directory@main"
source: "Handbook/Administration/Directory/Index.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

<a id="handbook-administration-package-directory"></a>

# Directory (LDAP and Active Directory) {#handbook-administration-directory}

> [!NOTE]
> This page needs the Directory package. If your company does not use it, the directory cannot be chosen.

Connect adsum to your Active Directory or another LDAP directory. People then log in with their directory password,
adsum keeps the accounts in step with the directory, and groups can give the roles HR and admin.

## Connect the directory {#connect-the-directory}

1.  Open **Administration > Single sign-on** and select **Add a provider**.
1.  As **Type**, choose **Directory (LDAP, Active Directory)**. Enter a **Label** and switch on
    **Active**.
1.  Under **Directory connection**, enter the **Servers**, such as `ldaps://dc1.example.local`,
    choose the kind of **Directory**, and enter the service account adsum reads the directory with.
1.  Under **Entries**, enter the **Search base (base DN)**, the **Filter** for the people and
    the **Login name** people log in with.
1.  Under **Attributes**, name the directory attributes for name, e-mail, phone, department and so on. Leave
    one empty to ignore it.
1.  Save, then select **Test**. Nothing is changed by the test.

Selecting the directory in the list opens its own page with the tabs **Settings**, **Sync runs** and
**Open write-backs**.

## Sync {#sync}

The sync links each directory entry to the employee with the same e-mail address. When an entry is disabled or
removed in the directory, the person's account is blocked; when it is enabled again, the block is lifted. HR sees
entries that match no employee (see [Directory entries](https://docs.typo3.org/permalink/web-vision/adsum-monorepo:handbook-hr-directory-entries@main)).

Under **Sync**, choose how often it runs, whether it takes names and phone from the directory, and whether
changes in adsum are written back to the directory. **Sync now** starts it at once; **Dry run** only
shows what it would do. The tab **Sync runs** lists every run.

If a sync would block more than a fifth of the accounts, it stops with **Stopped before blocking** and the
administrators are notified. Check the filter and search base. If the blocks are right, start the sync again with
**Allow blocking more than a fifth of the accounts**.

## Roles from groups {#roles-from-groups}

Under **Roles from groups**, switch the mapping on and enter the directory groups for HR and for admins, one
per line. At every login and sync, people get or lose the roles according to their groups. The last HR person or
administrator of the company always keeps the role.

## Good to know {#good-to-know}

-   People change their password in the directory, not in adsum. A password they had in adsum before no longer works.
-   When the directory cannot be reached, nobody can log in with it.
-   The tab **Open write-backs** shows changes the directory has not accepted yet.
