2013-10-08 61 views
2

我遇到了使用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----- 

回答

0

這是一個有點晚了,但問題是由安裝nslcd

解決
0
  • 什麼堆棧跟蹤看起來像在GDB?
  • 修復加載CA的錯誤是否解決了問題?如果證書即使存在,也可能無法打開,看起來可能存在權限問題。