8000 feat: core flags management for Samba 3+ by DavidePrincipi · Pull Request #890 · NethServer/ns8-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: core flags management for Samba 3+ #890

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

Merged
merged 4 commits into from
May 29, 2025
Merged

feat: core flags management for Samba 3+ #890

merged 4 commits into from
May 29, 2025

Conversation

DavidePrincipi
Copy link
Member

The Samba 3 app version is like a standard app: it has no core_module flag. When it is installed from Domain and Users page dynamically set the traditional module flags core_module and account_provider.

Furthermore, fix the existing library and actions behavior to consistently list Samba in both Software Center and Core Apps views, depending on the actual instance flags.

Refs NethServer/dev#7384

Dynamically set core_module and account_provider flags on Samba
instances. Since version 3, Samba can be installed from Software Center
as a normal application to implement AD member role.
The "available" list key is "id", not "name" used as the human-readable
module name.
Since Samba application instances can be both with/without core_module
flag, check the actual flag state for each app instance instead checking
only the first one.

To ensure destination checks are performed on every Samba instance
(no matter its role), filter out core_module instances _after_ the
destination check is done.
The Samba app cannot be restored if the node hosts another Samba instance.

See also #862

Refs NethServer/dev#7384
@DavidePrincipi DavidePrincipi self-assigned this May 29, 2025
@DavidePrincipi DavidePrincipi marked this pull request as ready for review May 29, 2025 09:47
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.

Seems good.

Copy link
Contributor
@andre8244 andre8244 left a comment

Choose a reason for hiding this comment

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

🤞 I hope the patch on the frontend is easy as well

@DavidePrincipi
Copy link
Member Author

🤞 I hope the patch on the frontend is easy as well

No changes needed on the UI side!

@DavidePrincipi DavidePrincipi merged commit 9763e79 into main May 29, 2025
2 checks passed
@DavidePrincipi DavidePrincipi deleted the feat-7384 branch May 29, 2025 15:46
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
0