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:
1 parent
1c7794b870
commit
c563fa43b4
1 file changed
+3
-1
+3
-1
@@ -97,8 +97,10 @@ public class AuthenticationProviderService {
|
||||
List<String> usernameAttributes = confService.getUsernameAttributes();
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
// Derive user DN from base DN
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user