On 02/04/11 9:08 PM, Marco Pizzoli wrote:
It was AppArmor.
On Sat, Apr 2, 2011 at 1:57 PM, Warren
@(#) $OpenLDAP: slapd 2.4.21 (Mar 30 2011 18:32:32) $
Ubuntu 10.04.2 LTS \n \l
This is Ubuntu so openldap has been compiled with GnuTLS
libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0xb73a9000)
I've been following this guide https://help.ubuntu.com/10.04/serverguide/C/openldap-server.html
and the section on TLS works perfectly if I follow the
instructions to the letter.
That is, so long as the locations of olcTLSCACertificateFile,
olcTLSCertificate and olcTLSCertificateKeyFile are
/etc/ssl/certs, /etc/ssl/certs and /etc/ssl/private
respectively, then slapd will start. For example:
However, if I change the location of any of these files slapd
will fail to start with the error "TLS init def ctx failed:
Should anyone ask, yes I've doubled checked for correct file
permissions and searched for typos. The names of the files
does not matter, just their location.
These appears to be bug to me.
check your AppArmor configuration. I had same problem some times
You have to add that dirs to apparmor-slapd conf and reload app
Hope this helps
Non è forte chi non cade, ma chi cadendo ha la forza di rialzarsi.
Thanks heaps for that tip.