[
https://issues.apache.org/jira/browse/KNOX-3539?focusedWorklogId=1052111&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1052111
]
ASF GitHub Bot logged work on KNOX-3539:
----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Nov/26 09:50
Start Date: 03/Nov/26 09:50
Worklog Time Spent: 10m
Work Description: github-actions[bot] commented on PR #1479:
URL: https://github.com/apache/knox/pull/1479#issuecomment-6600432596
## Test Results
5 files 5 suites 1m 31s ⏱️
186 tests 184 ✅ 2 💤 0 ❌
227 runs 225 ✅ 2 💤 0 ❌
Results for commit ab2478ca.
[test-results]:data:application/gzip;base64,H4sIAHGu6WoC/03MSw6DIBSF4a0Yxh14bwFpN9Mgj4RUpUEYNd17r0TR4f+d5HyZD5Nb2bMTt46tJeQWtiSdQ1woH0BNS942UPKo11qMqcRPeocPETbwOkwEfQOXUky7pLJsn4jDHsclomhyPta+HNa+/pk4zyFTMD0iH5TRxo0KrFTeOg29FAY8oLp7bq10VgD7/QEpW0PKBAEAAA==
Issue Time Tracking
-------------------
Worklog Id: (was: 1052111)
Time Spent: 0.5h (was: 20m)
> Add an option to lowercase the user ID in the LDAP proxy roles-lookup
> interceptor
> ---------------------------------------------------------------------------------
>
> Key: KNOX-3539
> URL: https://issues.apache.org/jira/browse/KNOX-3539
> Project: Apache Knox
> Issue Type: Task
> Components: LDAP, Server
> Affects Versions: 3.0.0
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Major
> Fix For: 3.1.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The LDAP proxy's {{LDAPRolesLookupInterceptor}} builds the user ID for the
> roles lookup from the {{uid}} attribute of the entry returned by the backend
> directory. For Active Directory backends, uid holds {{sAMAccountName}}. AD
> matches this attribute case-insensitively, but the value comes back in its
> canonical case (e.g. {{Admin}}). Whatever case the client searched with
> ({{admin}}, {{ADMIN}}), the roles-lookup service receives {{Admin}}.
> If the roles backend stores and matches user IDs case-sensitively and has
> role memberships keyed on a different case (e.g. the login name as typed),
> the lookup finds nothing and the user gets no roles.
> *Proposal*: add a new gateway configuration property:
> {code}
> gateway.ldap.roles.lookup.lowercase.user.id = false (default)
> {code}
> When {{true}}, the interceptor lowercases the user ID before calling
> {{LDAPRolesLookupService.lookupRoles()}}. Combined with
> {{expression.principal.mapping = (lowercase username)}} in the
> {{identity-assertion}} provider, the asserted principal and the roles-lookup
> key are then always the same case. The default (false) keeps the current
> behavior.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)