Run OpenLDAP as a Windows service via Cygwin

From rigsbwiki

Jump to: navigation, search

Objective

Install OpenLDAP on Windows Server 2003 as a Windows service.

Notes

  • Install Cygwin
    • Minimal install with only openldap and cygrunsrv selected.
  • Configure slapd
  • Use cygrunsrv to install slapd as a Windows service.
cygrunsrv --install OpenLDAP --path /usr/sbin/slapd --args "-d 0 -h ldap://<IP_ADDRESS_TO_BIND>:<PORT> -f /etc/openldap/slapd.conf" --desc OpenLDAP/Cygwin
  • Make sure LocalSystem account has permissions to /var/openldap.
Personal tools