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.LDAPEntry;
|
||||
import com.novell.ldap.LDAPException;
|
||||
import com.novell.ldap.LDAPReferralException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.guacamole.auth.ldap.user.AuthenticatedUser;
|
||||
@@ -236,9 +234,7 @@ public class AuthenticationProviderService {
|
||||
authenticatedUser.init(credentials);
|
||||
|
||||
// Set attributes
|
||||
String username = credentials.getUsername();
|
||||
Map<String, String> attrs = getLDAPAttributes(ldapConnection, username);
|
||||
authenticatedUser.setAttributes(attrs);
|
||||
authenticatedUser.setAttributes(getLDAPAttributes(ldapConnection, credentials.getUsername()));
|
||||
|
||||
return authenticatedUser;
|
||||
|
||||
|
@@ -206,8 +206,8 @@ public class LDAPGuacamoleProperties {
|
||||
};
|
||||
|
||||
/**
|
||||
* Custom attribute or attributes in Guacamole user's record in the
|
||||
* LDAP directory.
|
||||
* Custom attribute or attributes to query from Guacamole user's record in
|
||||
* the LDAP directory.
|
||||
*/
|
||||
public static final StringListProperty LDAP_USER_ATTRIBUTES = new StringListProperty() {
|
||||
|
||||
|
Reference in New Issue
Block a user