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

Fix bind-user-domains with empty domain list #596

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Conversation

DavidePrincipi
Copy link
Member

@DavidePrincipi DavidePrincipi commented Feb 29, 2024

  1. The domain list can be empty: if a module instance like Nextcloud switches from LDAP user DB to internal user DB the module_domain relation must be cleared -- is this a new bug? I'm trying to fix it with this PR.
  2. Samba already has role accountprovider: it cannot be assigned another role. We need to extend accountprovider so it can invoke also bind-user-domains -- Required by Subscription inventory accounting enhancements dev#6852

Related also to NethServer/dev#6860

The domain list can be empty: if a module instance like Mattermost
switches from LDAP user DB to internal user DB the module_domain
relation must be cleared.
@DavidePrincipi DavidePrincipi self-assigned this Feb 29, 2024
github-actions bot pushed a commit that referenced this pull request Feb 29, 2024
The role "accountprovider" needs to invoke bind-user-domains to allow
Samba instances that are also File Servers, to register themselves.
github-actions bot pushed a commit that referenced this pull request Feb 29, 2024
@DavidePrincipi
Copy link
Member Author

DavidePrincipi commented Feb 29, 2024

  1. The domain list can be empty: if a module instance like Nextcloud switches from LDAP user DB to internal user DB the module_domain relation must be cleared -- is this a new bug?

@stephdl what do you think? Is this PR enough to fix it?

@DavidePrincipi DavidePrincipi marked this pull request as ready for review March 4, 2024 08:33
@DavidePrincipi DavidePrincipi merged commit 7e4b361 into main Mar 4, 2024
3 checks passed
@DavidePrincipi DavidePrincipi deleted the fix-bud branch March 4, 2024 11:49
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