LDAP service does not start


SYMPTOMS

When the LDAP service is started it stops immediately with an error. The Windows event log may present one of the following errors under the "System" event log:

  1. The MailEnable LDAP Service service terminated with the following service-specific error: The directory cannot be removed.
  2. The MailEnable LDAP Service service terminated with service-specific error: The media is write protected..

CAUSE

Error 1:

This occurs if the server already has a service using the LDAP default port (port 389). The MailEnable LDAP service is unable to bind to the port, so exits.

Error 2:

The LDAP "slapd.conf" contains invalid paths in the top "include" lines to a drive that is either write protected or is no longer online.

RESOLUTION

Error 1 Resolution:

To resolve you can either stop the other application that is using the port, or you can configure the LDAP service to bind to another port. In order to change the port number for the LDAP service you will need to add the following registry key, changing the number the port you wish to listen on:

For 32bit Windows:
[HKEY_LOCAL_MACHINE\SOFTWARE\Mail Enable\Mail Enable\Services\LDAP\Parameters]
"URLs"="ldap://localhost:9049/"

For 64bit Windows:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mail Enable\Mail Enable\Services\LDAP\Parameters]
"URLs"="ldap://localhost:9049/"

You will need to stop and start the LDAP service to have changes be effective.

Error 2 Resolution:

  1. Navigate within the MailEnable installation path to the "LDAP" folder.
  2. Locate the "slapd.conf" file and open in Windows Notepad
  3. Edit the "include" lines so that they point to the active MailEnable LDAP folder.
  4. Save the file and start the LDAP service.


Product:MailEnable
Category:Other
Article:ME020615
Module:General
Keywords:
Class:TRB: Troubleshooting (Configuration or Environment)
Revised:Thursday, November 24, 2016
Author:
Publisher:MailEnable