smolnar82 commented on code in PR #1479:
URL: https://github.com/apache/knox/pull/1479#discussion_r4465006131


##########
gateway-server/src/main/java/org/apache/knox/gateway/services/ldap/interceptor/LDAPRolesLookupInterceptor.java:
##########
@@ -257,7 +266,7 @@ private EntryFilteringCursor 
handleSearch(SearchOperationContext ctx) throws Lda
                 if (LdapUtils.isGroupEntry(entry)) {
                     roleEntries.addAll(translateGroupEntry(entry));
                 } else {
-                    final String username = 
LdapUtils.extractUsernameFromEntry(entry, "uid", "cn");
+                    final String username = 
toRolesLookupUserId(LdapUtils.extractUsernameFromEntry(entry, "uid", "cn"));
                     final Set<String> groups = fetchGroups(entry);

Review Comment:
   Fixed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to