ldapi-socket-place
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Sat, 23 Jan 2021 16:57:07 +0000 (16:57 +0000)
committerRyan Tandy <ryan@nardis.ca>
Sat, 23 Jan 2021 16:57:07 +0000 (16:57 +0000)
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.

Gbp-Pq: Name ldapi-socket-place

include/ldap_defaults.h

index 8240621a4cb1c910b7e443f9101a68e94604ded0..04e3e4dfb27af6d8a5088c086f39fdc30eb79971 100644 (file)
@@ -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