我遇到了使用openLDAP和ldapsearch的問題。服務器是RHEL6.1並且ldap的配置通常是正確的,許多具有相同LDAP配置的其他服務器運行良好。當我運行ldapsearch -x -ZZ
命令,我得到了以下錯誤:Segmentation fault (core dumped)
LDAP:ldapsearch段錯誤
這裏是最後一行從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-----