Skip to content

Document the ldapservice password rotation - #158

Merged
DavidePrincipi merged 1 commit into
mainfrom
rotate-ldapservice
Aug 27, 2026
Merged

DavidePrincipi merged 1 commit into
mainfrom
rotate-ldapservice

Conversation

@DavidePrincipi

Copy link
Copy Markdown
Member

Add a README section describing how to rotate the ldapservice password of
an internal LDAP domain. There is no action for it, and the procedure is not
obvious, because the password is stored in three places that must be kept in
sync:

  • the userPassword attribute of cn=ldapservice,<base DN>
  • the LDAP_SVCPASS variable of every openldap module of the domain
  • the bind_password field of the module/<module id>/srv/tcp/ldap Redis
    key, which is the record consumers read

The documented steps set the new value in the module environment, change it
in the LDAP database on one provider (replication propagates it), update the
service discovery record of each provider with redis-cli on the leader
node, and finally raise the user-domain-changed event.

NethServer/dev#8138

🤖 Generated with Claude Code

The ldapservice password is generated once when the domain is created and
no action rotates it. Document the manual procedure, because the secret is
stored in three places that must be kept in sync: the LDAP entry, the
module environment file and the service discovery Redis key.

Assisted-by: Claude Code:claude-opus-5

@gsanchietti gsanchietti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Bear in mind that this will not be visible to users.

@DavidePrincipi
DavidePrincipi merged commit 9d003cc into main Aug 27, 2026
3 checks passed
@DavidePrincipi
DavidePrincipi deleted the rotate-ldapservice branch August 27, 2026 07:09
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.

2 participants