Bug 2217922 - Netgroups checkbox can't be checked but is clickable in AD auth source
Summary: Netgroups checkbox can't be checked but is clickable in AD auth source
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: LDAP
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-27 13:37 UTC by Lukáš Hellebrandt
Modified: 2023-06-30 00:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-18658 0 None None None 2023-06-27 13:41:28 UTC

Description Lukáš Hellebrandt 2023-06-27 13:37:32 UTC
Description of problem:
When I have an external auth source of type Active Directory, on its Account tab, I can check Use Netgroups checkbox but Submitting doesn't save this setting. The setting is not applied and the next time I visit that tab, it's unchecked again.

Version-Release number of selected component (if applicable):
Sat 6.14 snap 3.0, not a regression

How reproducible:
Deterministic

Steps to Reproduce:
1. Administer -> Auth Sources -> LDAP -> Create
2. On the first tab, fill connection data and select Active Directory as Server type
3. On the second tab, fill account data and check Use Netgroups.
4. Submit
5. Open the new auth source details and go to Account tab

Actual results:
Use Netgroups is not checked

Expected results:
Since Use Netgroups seems not to be supported for AD, the checkbox shouldn't be visible or it should be greyed-out

Additional info:
Caused by https://github.com/theforeman/foreman/blob/develop/app/models/auth_sources/auth_source_ldap.rb#L199


Note You need to log in before you can comment on or make changes to this bug.