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
--
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]