Skip to content

Document the ldapservice password rotation - #236

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

DavidePrincipi merged 1 commit into
mainfrom
doc-rotate-ldapservice-password

Conversation

@DavidePrincipi

Copy link
Copy Markdown
Member

Add a README section describing how to rotate the ldapservice password of
an internal AD 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 password of the ldapservice AD account
  • the SVCPASS variable of every samba DC module of the domain
  • the bind_password field of the module/<module id>/srv/tcp/ldap Redis
    key, which is the record consumers read through agent.ldapproxy

The documented steps set the new value in the module environment, change it
in AD on one DC with samba-tool (replication propagates it), update the
service discovery record of each DC with redis-cli on the leader node, and
finally raise the user-domain-changed event. The section also notes that
neither Ldapproxy nor the samba-dc container needs a restart, and that
member role instances are not involved.

Same content as NethServer/ns8-openldap#158, adapted to the Samba AD backend.

NethServer/dev#8138

🤖 Generated with Claude Code

The ldapservice password of an internal AD domain has no rotation action,
and the procedure is not obvious because the value is stored in three
places that must be kept in sync: the AD account, the module environment
and the service discovery record read by consumers.

Assisted-by: Claude Code:claude-opus-5
@DavidePrincipi DavidePrincipi self-assigned this Aug 26, 2026

@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 b0f33b0 into main Aug 27, 2026
2 of 3 checks passed
@DavidePrincipi
DavidePrincipi deleted the doc-rotate-ldapservice-password branch August 27, 2026 07:02
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