LDAP:ldapsearch段错误

时间:2013-10-08 09:38:30

标签: segmentation-fault certificate openldap starttls

我遇到使用openLDAP和ldapsearch的问题。服务器是RHEL6.1,ldap的配置通常是正确的,许多其他具有相同LDAP配置的服务器运行良好。当我运行ldapsearch -x -ZZ命令时,出现以下错误:Segmentation fault (core dumped)

以下是ldapsearch -x -ZZ -d -1的最后一行:

ldap_msgfree
TLS: certdb config: configDir='/etc/openldap/cacerts' tokenDescription='ldap(0)' certPrefix='' keyPrefix='' flags=readOnly
TLS: cannot open certdb '/etc/openldap/cacerts', error -8192:Unknown code ___f 0
TLS: loaded CA certificate file /etc/openldap/cacerts/ca.crt.
TLS: skipping 'ca.crt' - filename does not have expected format (certificate hash with numeric suffix)
TLS: skipping 'servad01' - filename does not have expected format (certificate hash with numeric suffix)
TLS: loaded CA certificate file /etc/openldap/cacerts/a50bd25e.0 from CA certificate directory /etc/openldap/cacerts.
TLS: error: the certificate '/etc/openldap/cacerts/servad01/servad01.crt' could not be found in the database - error -8187:Unknown code ___f 5.
Segmentation fault (core dumped)

文件servad01.crt存在:

[root openldap]# cat 
/etc/openldap/cacerts/servad01/servad01.crt
-----BEGIN CERTIFICATE-----

[...]

-----END CERTIFICATE-----

1 个答案:

答案 0 :(得分:0)

有点晚了,但安装nslcd

解决了问题