GUAC-1388: Correct whitespace errors. Remove unrelated reformatting.

This commit is contained in:
Michael Jumper
2016-01-22 08:28:02 -08:00
parent a9b8fce84d
commit 84eb4d8598
3 changed files with 20 additions and 19 deletions

View File

@@ -64,8 +64,8 @@ public class LDAPGuacamoleProperties {
};
/**
* The base DN of role based access control (RBAC) groups.
* All groups should be under this DN.
* The base DN of role based access control (RBAC) groups. All groups
* should be under this DN.
*/
public static final StringGuacamoleProperty LDAP_GROUP_BASE_DN = new StringGuacamoleProperty() {

View File

@@ -96,9 +96,8 @@ public class ConnectionService {
// Do not return any connections if base DN is not specified
String configurationBaseDN = confService.getConfigurationBaseDN();
if (configurationBaseDN == null) {
if (configurationBaseDN == null)
return Collections.<String, Connection>emptyMap();
}
try {
@@ -195,7 +194,8 @@ public class ConnectionService {
// Return map of all connections
return connections;
} catch (LDAPException e) {
}
catch (LDAPException e) {
throw new GuacamoleServerException("Error while querying for connections.", e);
}
@@ -219,7 +219,9 @@ public class ConnectionService {
* @throws GuacamoleException
* If an error occurs retrieving the group base DN.
*/
private String getConnectionSearchFilter(String userDN, LDAPConnection ldapConnection) throws LDAPException, GuacamoleException {
private String getConnectionSearchFilter(String userDN,
LDAPConnection ldapConnection)
throws LDAPException, GuacamoleException {
// Create a search filter for the connection search
StringBuilder connectionSearchFilter = new StringBuilder();
@@ -231,7 +233,6 @@ public class ConnectionService {
// If group base DN is specified search for user groups
String groupBaseDN = confService.getGroupBaseDN();
if (groupBaseDN != null) {
// Get all groups the user is a member of starting at the groupBaseDN, excluding guacConfigGroups