From fb81abecb4e8b212f30607bf86d5b1fd769fb19d Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Tue, 15 Jul 2014 17:48:54 -0400 Subject: keystone: package openLDAP 2.4.39 The patches are taken from Debian. Signed-off-by: Amy Fong --- .../openldap/openldap-2.4.39/ldapi-socket-place.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 recipes-support/openldap/openldap-2.4.39/ldapi-socket-place.patch (limited to 'recipes-support/openldap/openldap-2.4.39/ldapi-socket-place.patch') diff --git a/recipes-support/openldap/openldap-2.4.39/ldapi-socket-place.patch b/recipes-support/openldap/openldap-2.4.39/ldapi-socket-place.patch new file mode 100644 index 0000000..a482bbf --- /dev/null +++ b/recipes-support/openldap/openldap-2.4.39/ldapi-socket-place.patch @@ -0,0 +1,16 @@ +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. + +--- a/include/ldap_defaults.h ++++ b/include/ldap_defaults.h +@@ -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 -- cgit v1.2.3-54-g00ecf