2013-10-08 33 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的错误是否解决了问题?如果证书即使存在,也可能无法打开,看起来可能存在权限问题。