Skip to content

Enhance LDAP provider handling during node removal#1201

Open
stephdl wants to merge 1 commit into
mainfrom
sdl-7841
Open

Enhance LDAP provider handling during node removal#1201
stephdl wants to merge 1 commit into
mainfrom
sdl-7841

Conversation

@stephdl

@stephdl stephdl commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-replica for each removed provider’s serverid.
  • Publish cluster/event/service-ldap-changed to trigger ldapproxy reconfiguration after provider removal.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/imageroot/var/lib/nethserver/cluster/actions/remove-node/50remove_node Outdated
Comment thread core/imageroot/var/lib/nethserver/cluster/actions/remove-node/50remove_node Outdated
Comment thread core/imageroot/var/lib/nethserver/cluster/actions/remove-node/50remove_node Outdated
@stephdl stephdl requested a review from DavidePrincipi June 11, 2026 07:14
Comment thread core/imageroot/var/lib/nethserver/cluster/actions/remove-node/50remove_node Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants