mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1170: LDAPAttribute.getStringValues() returns a non-generic Enumeration (sadly).
This commit is contained in:
@@ -252,10 +252,10 @@ public class LDAPAuthenticationProvider extends SimpleAuthenticationProvider {
|
|||||||
if (parameterAttribute != null) {
|
if (parameterAttribute != null) {
|
||||||
|
|
||||||
// For each parameter
|
// For each parameter
|
||||||
Enumeration<String> parameters = parameterAttribute.getStringValues();
|
Enumeration<?> parameters = parameterAttribute.getStringValues();
|
||||||
while (parameters.hasMoreElements()) {
|
while (parameters.hasMoreElements()) {
|
||||||
|
|
||||||
String parameter = parameters.nextElement();
|
String parameter = (String) parameters.nextElement();
|
||||||
|
|
||||||
// Parse parameter
|
// Parse parameter
|
||||||
int equals = parameter.indexOf('=');
|
int equals = parameter.indexOf('=');
|
||||||
|
Reference in New Issue
Block a user