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:
Michael Jumper
2015-10-20 15:24:26 -07:00
parent 1c7794b870
commit c563fa43b4

View File

@@ -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