From dabd093667a10276faf9292b853d773ab9025fc5 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 22 Jan 2016 08:36:43 -0800 Subject: [PATCH] GUAC-1388: Clarify documentation of getConnectionSearchFilter(). --- .../auth/ldap/connection/ConnectionService.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/extensions/guacamole-auth-ldap/src/main/java/org/glyptodon/guacamole/auth/ldap/connection/ConnectionService.java b/extensions/guacamole-auth-ldap/src/main/java/org/glyptodon/guacamole/auth/ldap/connection/ConnectionService.java index 886cb08f4..017bb65c4 100644 --- a/extensions/guacamole-auth-ldap/src/main/java/org/glyptodon/guacamole/auth/ldap/connection/ConnectionService.java +++ b/extensions/guacamole-auth-ldap/src/main/java/org/glyptodon/guacamole/auth/ldap/connection/ConnectionService.java @@ -109,7 +109,8 @@ public class ConnectionService { // possibly be null assert(userDN != null); - // Get the search filter for finding connections associated to the userDN + // Get the search filter for finding connections accessible by the + // current user String connectionSearchFilter = getConnectionSearchFilter(userDN, ldapConnection); // Find all Guacamole connections for the given user by @@ -202,16 +203,19 @@ public class ConnectionService { } /** - * Returns the connection search filter for the given userDN. + * Returns an LDAP search filter which queries all connections accessible + * by the user having the given DN. * * @param userDN * DN of the user to search for associated guacConfigGroup connections. * * @param ldapConnection - * LDAP connection to use for searching for associated groups. + * LDAP connection to use if additional information must be queried to + * produce the filter, such as groups driving RBAC. * * @return - * Search filter for finding guacConfigGroup associated with the userDN. + * An LDAP search filter which queries all guacConfigGroup objects + * accessible by the user having the given DN. * * @throws LDAPException * If an error occurs preventing retrieval of user groups.