From: openKylin Developers <packaging@lists.openkylin.top>
Date: Tue, 2 Jun 2026 20:35:10 +0800
Subject: ldapi-socket-place

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.
---
 include/ldap_defaults.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/ldap_defaults.h b/include/ldap_defaults.h
index 06ad84f..f9c4c87 100644
--- a/include/ldap_defaults.h
+++ b/include/ldap_defaults.h
@@ -40,7 +40,7 @@
 
 /* default ldapi:// socket */
 #ifndef LDAPI_SOCK
-#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"
 #endif
 
 /*
