Bug 1306231
Summary: | Method SystemManager.setSystemSettings(settings) does not propagate LDAP changes into the RHQ Server's JAAS login modules | ||
---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | bkramer <bkramer> |
Component: | Core Server, CLI | Assignee: | Michael Burman <miburman> |
Status: | CLOSED ERRATA | QA Contact: | Sunil Kondkar <skondkar> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | JON 3.3.4, JON 3.3.5 | CC: | fbrychta, miburman, skondkar, spinder |
Target Milestone: | DR01 | Keywords: | Triaged |
Target Release: | JON 3.3.6 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 15:32:36 UTC | 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: | |||
Bug Depends On: | 1306233 | ||
Bug Blocks: |
Description
bkramer
2016-02-10 11:14:32 UTC
You forgot to call SystemManager.reconfigureSystem(). This is what the UI does: public void setSystemSettings(SystemSettings settings) throws RuntimeException { try { systemManager.setSystemSettings(getSessionSubject(), settings); systemManager.reconfigureSystem(getSessionSubject()); So two steps are required to set settings to be active. (In reply to Michael Burman from comment #1) > You forgot to call SystemManager.reconfigureSystem(). This is what the UI > does: > > public void setSystemSettings(SystemSettings settings) throws > RuntimeException { > try { > systemManager.setSystemSettings(getSessionSubject(), settings); > systemManager.reconfigureSystem(getSessionSubject()); > > So two steps are required to set settings to be active. I know that this method exists but it is not exposed in the SystemManagerRemote - see: https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Operations_Network/3.3/html/Remote_API/files/remote-api/org/rhq/enterprise/server/system/SystemManagerRemote.html So, I guess, this bugzilla should be changed to request exposure of the method reconfigureSystem? Yes, that would seem to be the more consistent solution. Changing the existing SystemManager.setSystemSettings() to do the reconfigure would cause changes elsewhere. Fixed in the master: commit 6139191d08987ab32a3df680b0f6e3ba4852bd68 Author: Michael Burman <miburman> Date: Wed Feb 10 14:47:57 2016 +0200 [BZ 1306231] Expose reconfigureSystem in SystemManagerRemote API This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions Moving to ON_QA as available to test with JON 3.3.6 DR01 brew build: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=499890 Verified on version : 3.3.0.GA Update 06 Build Number : 675641d:2fcd5b7 Verified that reconfigureSystem is exposed in SystemManagerRemote API rhqadmin.202.219:7080$ SystemManager. productInfo reconfigureSystem serverDetails setSystemConfiguration systemConfiguration systemSettings toString rhqadmin.202.219:7080$ SystemManager.reconfigureSystem() Verified that after following below steps: systems LDAP settings in UI shows "Enable LDAP" set to "Yes" and LDAP user is able to login successfully. $ var mySystemSettings = SystemManager.getSystemSettings(); $ mySystemSettings.put(SystemSetting.LDAP_BASED_JAAS_PROVIDER, "true"); false $ SystemManager.setSystemSettings(mySystemSettings) $ SystemManager.reconfigureSystem() Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-1519.html |