[
https://issues.apache.org/jira/browse/KNOX-3340?focusedWorklogId=1024603&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1024603
]
ASF GitHub Bot logged work on KNOX-3340:
----------------------------------------
Author: ASF GitHub Bot
Created on: 11/Jun/26 05:01
Start Date: 11/Jun/26 05:01
Worklog Time Spent: 10m
Work Description: handavid commented on code in PR #1258:
URL: https://github.com/apache/knox/pull/1258#discussion_r3393383226
##########
gateway-server/src/main/java/org/apache/knox/gateway/services/ldap/control/RolesLookupBypassControl.java:
##########
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.knox.gateway.services.ldap.control;
+
+import org.apache.directory.api.ldap.model.message.Control;
+
+public interface RolesLookupBypassControl extends Control {
+ // OID created from a UUID to ensure no collisions:
+ // Apache Root OID for core object classes 1.3.6.1.4.1.18060.2
+ // UUID "5236bee0-8a22-4419-9f8e-f1de43312ce1"
+ String OID =
"1.3.6.1.4.1.18060.2.1379319520.35362.17433.40846.265936912329953";
Review Comment:
@smolnar82 do you know how to get an official OID? This OID is generated
from a UUID so we shouldn't have any collisions, but it would be nice to get an
official OID before this control actually enters use.
Issue Time Tracking
-------------------
Worklog Id: (was: 1024603)
Time Spent: 0.5h (was: 20m)
> Enable KnoxLdapService Role Lookup to return either Roles or Groups
> -------------------------------------------------------------------
>
> Key: KNOX-3340
> URL: https://issues.apache.org/jira/browse/KNOX-3340
> Project: Apache Knox
> Issue Type: Improvement
> Components: Server
> Reporter: David Han
> Assignee: David Han
> Priority: Major
> Fix For: 3.0.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The KnoxLdapService, when configured with role lookup will replace all groups
> in the resulting entries with roles. This Jira provides a mechanism for
> clients to request the underlying groups instead of the roles. E.g., groups
> would be needed for some service to admin/manage the mapping between groups
> and roles.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)