Skip to content

Commit

Permalink
Issue 6340 - RFE - extract keys once (#6413)
Browse files Browse the repository at this point in the history
Bug Description: Keys/Certs are extracted to PEM
repeatedly causing many warnings during outbound TLS
authenticated replication

Fix Description: After more testing, if the connection is
dropped and restarted, the certpath is retrieved but
re-extraction does not occur. This still triggers the
warning however. To resolve this, we only warn about
the tpm namespace during library initialisation.

I really hope I got it right this time :(

fixes: #6340

Author: William Brown <[email protected]>

Review by: @progier389 @vashirov
  • Loading branch information
Firstyear committed Nov 29, 2024
1 parent 228bdec commit a3a7387
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ldap/servers/slapd/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -966,9 +966,12 @@ check_private_certdir()

if (!tmp_private) {
/* tmp is not a private name space */
slapi_log_err(SLAPI_LOG_WARNING, "Security Initialization",
if (_security_library_initialized == 0) {
/* only alert about this the first time around */
slapi_log_err(SLAPI_LOG_WARNING, "Security Initialization",
"%s is not a private namespace. pem files not exported there\n",
private_mountpoint);
}
return NULL;
}

Expand Down

0 comments on commit a3a7387

Please sign in to comment.