ldapi-socket-place
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Sun, 14 Jul 2024 21:37:43 +0000 (14:37 -0700)
committerRyan Tandy <ryan@nardis.ca>
Sun, 14 Jul 2024 21:37:43 +0000 (14:37 -0700)
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 f0caa3e9a024cb1c246984f9e2459fbf80c9f7ad..f1dd7b800f5bb6feda9976961dc5b97868055459 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