Ubuntu服务器10.10 OpenLDAP 2.4.23 gnutls 2.8.6不断收到“TLS init def ctx failed:-1”
所以我已经读了关于Debian / Ubuntu发行版迁移到TLS / SSL的gnutls实现。 很好,但我花了上周试图用TLS / SSLconfigurationOpanLDAP没有成功,一直在“TLS init def ctx failed:-1”错误卡住。 我猜这可能是由证书造成的,但我按照说明 https://help.ubuntu.com/10.10/serverguide/C/openldap-server.html 在我自己的笔记本电脑上,它就像一个魅力,只是没有任何原因在服务器上…. 好的,还有更多的细节: 服务器 :Ubuntu 10.10 32位 OpenLDAP :2.4.23-0ubuntu3.4(通过apt-get安装) Gnutls :2.8.6-1(随操作系统提供) 我仍然使用/etc/ldap/slapd.conf来configurationOpenLDAP(我知道这并不好,但是我已经从现有的工作服务器获得了这个configuration文件,所以我只是想利用它)。 这个configuration适用于我的笔记本电脑 一些细节: include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema access to attrs=userPassword by dn="cn=admin,dc=organisation,dc=com" write by anonymous auth by self write by * none . . . TLSCACertificateFile /etc/ssl/certs/cacert.pem […]