Conversation
There was a problem hiding this comment.
Pull request overview
This PR improves cluster node removal by adding LDAP-provider cleanup steps so that providers hosted on a removed node are de-registered and remaining providers can reconfigure, reducing the risk of stale LDAP upstream entries after a node is removed.
Changes:
- Detect LDAP providers that belong to the node being removed and group remaining providers by domain.
- Notify a surviving LDAP provider (per domain) to run
leave-replicafor each removed provider’sserverid. - Publish
cluster/event/service-ldap-changedto trigger ldapproxy reconfiguration after provider removal.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Thanks for tackling this, @stephdl — the stale-provider problem is real, but I'd push back on where the fix lives.
Could we trim |
Improve the handling of LDAP providers when a node is removed from the cluster. This change ensures that stale entries are purged and surviving providers are notified for reconfiguration.
NethServer/dev#7841