[
https://issues.apache.org/jira/browse/KNOX-3574?focusedWorklogId=1055809&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1055809
]
ASF GitHub Bot logged work on KNOX-3574:
----------------------------------------
Author: ASF GitHub Bot
Created on: 19/Nov/26 00:02
Start Date: 19/Nov/26 00:02
Worklog Time Spent: 10m
Work Description: handavid commented on code in PR #1523:
URL: https://github.com/apache/knox/pull/1523#discussion_r4622559705
##########
gateway-server/src/main/java/org/apache/knox/gateway/services/ldap/SchemaManagerFactory.java:
##########
@@ -110,5 +111,35 @@ private static void
getActiveDirectoryAttributeTypes(List<AttributeType> userAtt
userAccountControlAttrType.setOrderingOid("2.5.13.15"); //
integerorderingmatch
userAccountControlAttrType.setSingleValued(true);
userAttributes.add(userAccountControlAttrType);
+
+ // whenChanged and objectGUID exist on every Active Directory object
(users and groups) and
+ // are read-only. whenChanged is operational (returned only when
explicitly requested), which
+ // is the main reason KNOX-3574 passes requested attributes through to
the backend.
+ AttributeType whenChangedAttrType = new
AttributeType("1.2.840.113556.1.2.3");
+ whenChangedAttrType.setNames("whenChanged");
+ whenChangedAttrType.setSchemaName("other");
+ whenChangedAttrType.setSyntaxOid("1.3.6.1.4.1.1466.115.121.1.24"); //
generalized time
+ whenChangedAttrType.setEqualityOid("2.5.13.27"); //
generalizedtimematch
+ whenChangedAttrType.setOrderingOid("2.5.13.28"); //
generalizedtimeorderingmatch
+ whenChangedAttrType.setDescription("Microsoft Active Directory
whenChanged modification timestamp (operational)");
+ whenChangedAttrType.setSingleValued(true);
+ whenChangedAttrType.setUserModifiable(false);
+ whenChangedAttrType.setUsage(UsageEnum.DIRECTORY_OPERATION);
+ userAttributes.add(whenChangedAttrType);
+ groupAttributes.add(whenChangedAttrType);
+
+ AttributeType objectGuidAttrType = new
AttributeType("1.2.840.113556.1.4.2");
Review Comment:
fixed
Issue Time Tracking
-------------------
Worklog Id: (was: 1055809)
Time Spent: 1h (was: 50m)
> LDAP proxy backend returns operational attributes
> -------------------------------------------------
>
> Key: KNOX-3574
> URL: https://issues.apache.org/jira/browse/KNOX-3574
> Project: Apache Knox
> Issue Type: Improvement
> Components: LDAP
> Affects Versions: 3.0.0
> Reporter: David Han
> Assignee: David Han
> Priority: Major
> Fix For: 3.1.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> The returned attributes from the search should be passed directly to the
> backend so that operational attributes will be returned when specified.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)