[MGNLLDAP-58] Tester tool should indicate if it can resolve groups/roles Created: 08/Dec/11  Updated: 27/Apr/12  Resolved: 12/Apr/12

Status: Closed
Project: LDAP Connector
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.4, 1.5.3

Type: Improvement Priority: Neutral
Reporter: Magnolia International Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File MGNLLDAP-58.patch    
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

The tester tool currently outputs the following:

> Group names: (none)
> Role names: (none)

... which can be confusing, when used with MagnoliaGroupResolver, for example - the tool mocks out the GroupManager, and does not connect to the JCR, so it simply can not resolve the groups. Instead of indicating "none", it should tell the user this is normal and can only be resolved when connected to an actual Magnolia instance.

Same goes for roles – and likewise, if one uses an ldap group resolver but the MagnoliaRoleResolver, it could be confusing to indicate that no roles were resolved for the test user.

Here's a patch proposing a solution for this. Not entirely convinced this is the most elegant way.


Generated at Mon Feb 12 02:21:09 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.