This article provides detailed steps to map users from a specific Organizational Unit in Kerio Connect, which may be useful in cases when you want to differentiate between additional Active Directory and LDAP (Lightweight Directory Access Protocol) containers.
The LDAP database can use containers to differentiate between objects. An Organizational Unit is the full name of the LDAP object. To use Organizational Units with the Kerio Connect domain mapping, you need its Distinguished Name (DN).
Kerio Connect maps users from the default LDAP location, which is defined by the DN in this format:
There are two (at least) domains on the Kerio Connect server mapping users from the same directory service. Both email domains on the Kerio Connect server contain the same users. There is a need to differentiate between users according to the email domain to which the user belongs.
By default, Kerio Connect maps all users from all containers in the Active Directory, as this is the top-level structure of the Active Directory tree.
There are 2 ways to map the users from a specific Organizational Unit (OU). You can follow either of them:
Changing the Values from the Kerio Connect UI
- Login to Kerio Connect
- Go to Configuration > Domains and double-click the domain where the OU change needs to be made:
- Go to the Directory Service tab, check Different from this mail domain name and enter the DN value of the OU and then click on OK. Eg: If the OU name is support, then the value here will be support.example.com:
Changing the Values Manually
Warning: The instructions below include changing the configuration file. If the instructions are not followed correctly, they may cause problems with the functioning of the product. Only proceed if you are comfortable doing so. It is also good practice to take a backup before making any changes.
Configure Active Directory mapping. For additional information, refer to Connecting Kerio Control to Active Directory Service.
- Go to the Kerio Connect installation directory:
Windows: C:\Program Files\Kerio\MailServer
Open the mailserver.cfg configuration file.
<list name="Ldap">value in the configuration file.
In this section of the configuration file, locate your domain definition as highlighted in the below example:
GroupBasedDNsearch locations according to your path. In this example, the location was changed to the Support department:
Save the configuration file.
Kerio Connect now differentiates between additional Active Directory and LDAP containers.