ldapi-socket-place
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)
committerRyan Tandy <ryan@nardis.ca>
Sat, 24 Sep 2022 19:40:21 +0000 (20:40 +0100)
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 834c0014766291c2d0f95a8b163067fc1117e26b..868e46dcfe46320b11b9862f5415257305b3e615 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