Debian Codegraph @

debian/patches/ldapi-socket-place

raw
1 Move the ldapi socket to /var/run/slapd from /var/run, since /var/run
2 is only writable by root and slapd runs as openldap.
3
4 Debian-specific.
5
6 Index: openldap/include/ldap_defaults.h
7 ===================================================================
8 --- openldap.orig/include/ldap_defaults.h 2022-05-20 17:36:09.977244324 -0400
9 +++ openldap/include/ldap_defaults.h 2022-05-20 17:36:09.973244321 -0400
10 @@ -40,7 +40,7 @@
11
12 /* default ldapi:// socket */
13 #ifndef LDAPI_SOCK
14 -#define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi"
15 +#define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "slapd" LDAP_DIRSEP "ldapi"
16 #endif
17
18 /*