openldap and openssl directories will be used, eg. when using ldap_bind() function. Most typical problem would be when trying to use LDAP over SSL and the certificates are missing - you will have to install certificates in /etc/openldap/cacerts or /etc/pki/tls/certs directories.