mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Remove whitespace errors at end of non-blank lines as well.
This commit is contained in:
@@ -59,7 +59,7 @@ import org.slf4j.LoggerFactory;
|
||||
* Allows users to be authenticated against an LDAP server. Each user may have
|
||||
* any number of authorized configurations. Authorized configurations may be
|
||||
* shared.
|
||||
*
|
||||
*
|
||||
* @author Michael Jumper
|
||||
*/
|
||||
public class LDAPAuthenticationProvider extends SimpleAuthenticationProvider {
|
||||
@@ -174,16 +174,16 @@ public class LDAPAuthenticationProvider extends SimpleAuthenticationProvider {
|
||||
);
|
||||
|
||||
// Construct user DN
|
||||
String user_dn =
|
||||
String user_dn =
|
||||
escapeDN(username_attribute) + "=" + escapeDN(credentials.getUsername())
|
||||
+ "," + user_base_dn;
|
||||
|
||||
// Bind as user
|
||||
// Bind as user
|
||||
try {
|
||||
ldapConnection.bind(
|
||||
LDAPConnection.LDAP_V3,
|
||||
user_dn,
|
||||
credentials.getPassword().getBytes("UTF-8")
|
||||
credentials.getPassword().getBytes("UTF-8")
|
||||
);
|
||||
}
|
||||
catch (UnsupportedEncodingException e) {
|
||||
@@ -213,7 +213,7 @@ public class LDAPAuthenticationProvider extends SimpleAuthenticationProvider {
|
||||
// New empty configuration
|
||||
GuacamoleConfiguration config = new GuacamoleConfiguration();
|
||||
|
||||
// Get CN
|
||||
// Get CN
|
||||
LDAPAttribute cn = entry.getAttribute("cn");
|
||||
if (cn == null)
|
||||
throw new GuacamoleException("guacConfigGroup without cn");
|
||||
|
@@ -44,7 +44,7 @@ import net.sourceforge.guacamole.properties.StringGuacamoleProperty;
|
||||
* Provides properties required for use of the LDAP authentication provider.
|
||||
* These properties will be read from guacamole.properties when the LDAP
|
||||
* authentication provider is used.
|
||||
*
|
||||
*
|
||||
* @author Michael Jumper
|
||||
*/
|
||||
public class LDAPGuacamoleProperties {
|
||||
|
Reference in New Issue
Block a user