Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 ldap_sasl_bind_s() 与来自“C”windows 程序的 SSL 和客户端证书(没有 DN 和密码)一起正常工作。当我使用 SSL、DN 和密码(无客户端证书)调用 ldap_sasl_bind_s() 时,它会引发空指针异常。这应该工作还是我应该使用另一个 api 调用?
我在 Sun LDAP SDK 文档中找到了答案。即使客户端没有使用客户端证书身份验证,它仍然需要在之前的 ldapssl_client_init() 调用中传递 cert7 数据库文件,因为客户端验证服务器证书是由 cert7 db 中定义的 cacert 签名的。