mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-524: Removed unused imports, fixed comments, and condensed
code
This commit is contained in:
@@ -26,9 +26,7 @@ import com.novell.ldap.LDAPAttributeSet;
|
|||||||
import com.novell.ldap.LDAPConnection;
|
import com.novell.ldap.LDAPConnection;
|
||||||
import com.novell.ldap.LDAPEntry;
|
import com.novell.ldap.LDAPEntry;
|
||||||
import com.novell.ldap.LDAPException;
|
import com.novell.ldap.LDAPException;
|
||||||
import com.novell.ldap.LDAPReferralException;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import org.apache.guacamole.auth.ldap.user.AuthenticatedUser;
|
import org.apache.guacamole.auth.ldap.user.AuthenticatedUser;
|
||||||
@@ -236,9 +234,7 @@ public class AuthenticationProviderService {
|
|||||||
authenticatedUser.init(credentials);
|
authenticatedUser.init(credentials);
|
||||||
|
|
||||||
// Set attributes
|
// Set attributes
|
||||||
String username = credentials.getUsername();
|
authenticatedUser.setAttributes(getLDAPAttributes(ldapConnection, credentials.getUsername()));
|
||||||
Map<String, String> attrs = getLDAPAttributes(ldapConnection, username);
|
|
||||||
authenticatedUser.setAttributes(attrs);
|
|
||||||
|
|
||||||
return authenticatedUser;
|
return authenticatedUser;
|
||||||
|
|
||||||
|
@@ -206,8 +206,8 @@ public class LDAPGuacamoleProperties {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom attribute or attributes in Guacamole user's record in the
|
* Custom attribute or attributes to query from Guacamole user's record in
|
||||||
* LDAP directory.
|
* the LDAP directory.
|
||||||
*/
|
*/
|
||||||
public static final StringListProperty LDAP_USER_ATTRIBUTES = new StringListProperty() {
|
public static final StringListProperty LDAP_USER_ATTRIBUTES = new StringListProperty() {
|
||||||
|
|
||||||
|
@@ -182,7 +182,7 @@ public class StandardTokens {
|
|||||||
* extensions.
|
* extensions.
|
||||||
*
|
*
|
||||||
* @param filter
|
* @param filter
|
||||||
* The TokenFilter to add attributes tokens to.
|
* The TokenFilter to add attribute tokens to.
|
||||||
*
|
*
|
||||||
* @param attributes
|
* @param attributes
|
||||||
* The map of key/value pairs to add tokens for.
|
* The map of key/value pairs to add tokens for.
|
||||||
|
Reference in New Issue
Block a user