Bug #52816 LDAP Authorization options not hidden when unselected
Submitted: 14 Apr 2010 11:36
Reporter: Jonathon Coombes Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Enterprise Monitor: Web Severity:S4 (Feature request)
Version:2.2.0.1696 OS:MacOS
Assigned to: Josh Sled CPU Architecture:Any
Tags: LDAP, mem, Merlin

[14 Apr 2010 11:36] Jonathon Coombes
Description:
Under the Settings -> Global Settings page in the LDAP Authentication section, the option is given (LDAP is Authorized) to enable LDAP Authorization. This displays some new options related to this feature.

However, if this option is un-selected, then these new options do not disappear or hide from the user interface as would be normally expected.

How to repeat:
Click on LDAP is Authorized

Click again to unselect.

Suggested fix:
Hide the options as would be expected when the option is unselected.
[14 Apr 2010 14:31] Enterprise Tools JIRA Robot
Josh Sled writes: 
Which browser?
[14 Apr 2010 21:19] MySQL Verification Team
Verified in both Firefox 3.5.9 and Safari 4.0.4
[15 Apr 2010 16:01] Enterprise Tools JIRA Robot
Josh Sled writes: 
To be a bit more verbose about this, the as-implemented expectations about this form are:

- the main "Use LDAP for authentication" will only control the disabled status of the rest of the form fields, not their visibility.
- the "Authentication Mode" option will control the visibility of the subordinate form below it.
- the "Map LDAP Roles to Application Roles" will control the visibility of the subordinate form below it.

Not that we shouldn't hide the main form instead of disabling it in the future, but it is currently behaving as expected.
[16 Apr 2010 20:05] Enterprise Tools JIRA Robot
Mark Leith writes: 
The problem is that when you click the "LDAP is Authoritative" option, this opens up the subordinate form whilst auto-enabling the "Map LDAP Roles to Application Roles" option. If you then straight away disable the "LDAP is Authoritative, it does not close the subordinate form, nor does it disable the "Map LDAP Roles to Application Roles" that it auto-enabled.