kldap: add support for TLS CA certificate handling

Review Request #130249 - Created March 20, 2018 and discarded

Information
Tobias Junghans
master
Reviewers
kdepim
mlaurent

This implements basic support for setting the TLS certificate request option (LDAP_OPT_X_TLS_REQUIRE_CERT) as well as a dedicated certificate
file for checking server certificate (LDAP_OPT_X_TLS_CACERTFILE).

TLS connection to LDAP server with self-signed certificate

  • scenario a) none of the new options set -> connection fails due to missing certificate to check against
  • scenario b) use LdapServer::TLSReqCertNever which makes the connection succeed
  • scenario c) use LdapServer::TLSReqCertHard and set tlsCACertFile which makes the connection succeed

Files


Tobias Junghans
Laurent Montel
Laurent Montel
Tobias Junghans
Review request changed

Status: Discarded

Loading...