mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
GUAC-1115: Warn if we need to directly derive the user DN, but can't because multiple username attributes were provided.
This commit is contained in:
@@ -97,8 +97,10 @@ public class AuthenticationProviderService {
|
|||||||
List<String> usernameAttributes = confService.getUsernameAttributes();
|
List<String> usernameAttributes = confService.getUsernameAttributes();
|
||||||
|
|
||||||
// We need exactly one base DN to derive the user DN
|
// We need exactly one base DN to derive the user DN
|
||||||
if (usernameAttributes.size() != 1)
|
if (usernameAttributes.size() != 1) {
|
||||||
|
logger.warn("Cannot directly derive user DN when multiple username attributes are specified");
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// Derive user DN from base DN
|
// Derive user DN from base DN
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user