[MGNLLDAP-123] AD: Improve resolving group name from DN to be case insensitive Created: 29/Apr/20  Updated: 16/Apr/21  Resolved: 12/May/20

Status: Closed
Project: LDAP Connector
Component/s: None
Affects Version/s: None
Fix Version/s: 1.10.3

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
causality
Template:
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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: Support
Sprint: Maintenance 5, Maintenance 6
Story Points: 1

 Description   

At the moment, ADGroupResolver.resolveGroupName uses StringUtils.substringBetween which is case sensitive:

 protected String resolveGroupName(String groupDN) {
        final String groupIdAttribute = StringUtils.isNotBlank(attributeMap.getName(AttributeMap.GROUP_ID_ATTRIBUTE)) ? attributeMap.getName(AttributeMap.GROUP_ID_ATTRIBUTE) : "CN";
        return StringUtils.substringBetween(groupDN, groupIdAttribute + "=", ",");
    }

It would be great to improve it to be case insensitive.


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