necouchman commented on a change in pull request #497: GUACAMOLE-996: Add
support for configuring group filter.
URL: https://github.com/apache/guacamole-client/pull/497#discussion_r403530748
##########
File path:
extensions/guacamole-auth-ldap/src/main/java/org/apache/guacamole/auth/ldap/conf/ConfigurationService.java
##########
@@ -321,6 +322,26 @@ public ExprNode getUserSearchFilter() throws
GuacamoleException {
);
}
+ /**
+ * Returns the search filter that should be used when querying the
+ * LDAP server for Guacamole groups. If no filter is specified,
+ * a default of "(objectClass=group)" is returned.
+ *
+ * @return
+ * The search filter that should be used when querying the
+ * LDAP server for groups that are valid in Guacamole, or
+ * "(objectClass=group)" if not specified.
+ *
+ * @throws GuacamoleException
+ * If guacamole.properties cannot be parsed.
+ */
+ public ExprNode getGroupSearchFilter() throws GuacamoleException {
+ return environment.getProperty(
+ LDAPGuacamoleProperties.LDAP_GROUP_SEARCH_FILTER,
+ new EqualityNode("objectClass","group")
Review comment:
I think @mike-jumper's vote here was to make the default the
`PresenceNode("objectClass")`, similar to how users are done. I'm good with
either one, but it does seem more consistent at present to stick with that.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services