necouchman commented on a change in pull request #448: GUACAOMLE-893: Fix 
regression in LDAP filter with null value
URL: https://github.com/apache/guacamole-client/pull/448#discussion_r333178234
 
 

 ##########
 File path: 
extensions/guacamole-auth-ldap/src/main/java/org/apache/guacamole/auth/ldap/ObjectQueryService.java
 ##########
 @@ -141,16 +141,21 @@ public ExprNode generateQuery(ExprNode filter,
         // the given search filter
         AndNode searchFilter = new AndNode();
         searchFilter.addNode(filter);
-
-        // Include all attributes within OR clause if there are more than one
-        OrNode attributeFilter = new OrNode();
+        
+        // Add in attribute list
+        if (attributes.size() > 0) {
 
 Review comment:
   Yep, that's fair - implemented as suggested.

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

Reply via email to