Move the ldapi socket to /var/run/slapd from /var/run, since /var/run is only writable by root and slapd runs as openldap. Debian-specific. --- openldap.orig/include/ldap_defaults.h +++ openldap/include/ldap_defaults.h @@ -39,7 +39,7 @@ #define LDAP_ENV_PREFIX "LDAP" /* default ldapi:// socket */ -#define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi" +#define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "slapd" LDAP_DIRSEP "ldapi" /* * SLAPD DEFINITIONS