Bug 2217922

Summary: Netgroups checkbox can't be checked but is clickable in AD auth source
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: LDAPAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: aruzicka, rlavi
Target Milestone: UnspecifiedKeywords: Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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