authentik icon indicating copy to clipboard operation
authentik copied to clipboard

LDAP outpost keeps using old (expired) certificate

Open jmg2k opened this issue 11 months ago • 4 comments

Describe the bug

After renewal of certificates, the LDAP outpost isn't updated and continues to server the old certificate, causing validation failures and preventing LDAPS access until the outpost is manually restarted. Meanwhile, the Authentik web UI properly shows the updated certificate expiration date and everything okay.

How to reproduce

Setup a certificate in Authentik by placing the certificate files into the auto-detect directory. Configure an LDAP provider to use this certificate. Let the certificate expire and replace the certificate files with renewed ones. Then use openssl to connect via LDAPS and see the listed certificate details showing it as expired.

This is the command btw: openssl s_client -connect my.domain.com:636 -showcerts

Expected behavior

If the main Authentik application detects that a certificate has been updated, it should restart the LDAP outpost container it is managing, so the new certificate is applied without manual user intervention.

Screenshots

No response

Additional context

I run Authentik on TrueNAS Scale using the available ready-to-use app. The main Authentik container can access the Docker socket and is set-up to automatically manage outposts (run on that same host then). The certificate is managed by TrueNAS and bind-mounted into the main Authentik container into the auto-detect directory.

Deployment Method

Docker

Version

2025.10.2

Relevant log output


jmg2k avatar Dec 20 '25 09:12 jmg2k

I can confirm that i'm also still seeing this with 2025.12.1 - i'm going to upgrade to 2025.12.4 now and report back if it changes anything ...

katrinm86 avatar Feb 16 '26 13:02 katrinm86

well ... at least it updated the certificate when the local outpost in docker was replaced :) lets see

katrinm86 avatar Feb 16 '26 13:02 katrinm86

nope, still not updating the certificate in the outposts :/

could this have something to do with the expiry date? we are testing short-lived certificates for our services and authentik already marks the used certificate as expiring soon ...?

katrinm86 avatar Feb 24 '26 12:02 katrinm86

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.