Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autodiscover user domain and set environment variable #48

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Conversation

stephdl
Copy link
Collaborator

@stephdl stephdl commented Nov 21, 2024

Implement autodiscovery of the user domain upon changes and bind it to the environment variable USER_DOMAIN. This ensures the application responds correctly to user domain updates.

NethServer/dev#7103

Copy link
Member

@gsanchietti gsanchietti left a comment

Choose a reason for hiding this comment

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

Main points:

  • do not add new env variable: it's not set on existing installation, so the event will be ignored
  • ignore node_id parameter
  • the module should also listen to module-domain-changed: the service must be restarted if our mail server is inside the modules event parameter

imageroot/actions/configure-module/30Bind_user_domain Outdated Show resolved Hide resolved
imageroot/events/user-domain-changed/20configure_ldap Outdated Show resolved Hide resolved
imageroot/events/user-domain-changed/20configure_ldap Outdated Show resolved Hide resolved
imageroot/events/user-domain-changed/20configure_ldap Outdated Show resolved Hide resolved
imageroot/events/user-domain-changed/20configure_ldap Outdated Show resolved Hide resolved
@stephdl stephdl force-pushed the sdl-7103 branch 2 times, most recently from aed978c to d95d873 Compare November 22, 2024 10:44
@gsanchietti
Copy link
Member

  • the module should also listen to module-domain-changed: the service must be restarted if our mail server is inside the modules event parameter

This is not needed because the mail server publishes the mail-settings-changed when it's account configuration is changed.
Roundcube already implement the handler for such event.

@gsanchietti gsanchietti removed the request for review from DavidePrincipi November 22, 2024 11:31
@stephdl stephdl merged commit ad0016f into main Nov 22, 2024
4 checks passed
@stephdl stephdl deleted the sdl-7103 branch November 22, 2024 16:34
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