]> git.sur5r.net Git - openldap/commit
ITS#6975 MozNSS - allow cacertdir in most cases
authorRich Megginson <rmeggins@redhat.com>
Tue, 21 Jun 2011 00:28:48 +0000 (18:28 -0600)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 22 Jun 2011 00:50:48 +0000 (17:50 -0700)
commit7e528ae8022664b550410cdbe23690719d1a66a7
treed92110f24d4f8591df5fa7f1d821a360a5347298
parent89b9f0291aa36cc58c537b659fd30d44a298a4bf
ITS#6975 MozNSS - allow cacertdir in most cases

OpenLDAP built with OpenSSL allows most any value of cacertdir - directory
is a file, directory does not contain any CA certs, directory does not
exist - users expect if they specify TLS_REQCERT=never, no matter what
the TLS_CACERTDIR setting is, TLS/SSL will just work.
TLS_CACERT, on the other hand, is a hard error.  Even if TLS_REQCERT=never,
if TLS_CACERT is specified and is not a valid CA cert file, TLS/SSL will
fail.  This patch makes CACERT errors hard errors, and makes CACERTDIR
errors "soft" errors.  The code checks CACERT first and, even though
the function will return an error, checks CACERTDIR anyway so that if the
user sets TRACE mode they will get CACERTDIR processing messages.
libraries/libldap/tls_m.c