mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUAC-1342: Clarify username attribute warning.
This commit is contained in:
@@ -36,6 +36,7 @@ import org.glyptodon.guacamole.auth.ldap.ConfigurationService;
|
|||||||
import org.glyptodon.guacamole.auth.ldap.EscapingService;
|
import org.glyptodon.guacamole.auth.ldap.EscapingService;
|
||||||
import org.glyptodon.guacamole.GuacamoleException;
|
import org.glyptodon.guacamole.GuacamoleException;
|
||||||
import org.glyptodon.guacamole.GuacamoleServerException;
|
import org.glyptodon.guacamole.GuacamoleServerException;
|
||||||
|
import org.glyptodon.guacamole.auth.ldap.LDAPGuacamoleProperties;
|
||||||
import org.glyptodon.guacamole.net.auth.User;
|
import org.glyptodon.guacamole.net.auth.User;
|
||||||
import org.glyptodon.guacamole.net.auth.simple.SimpleUser;
|
import org.glyptodon.guacamole.net.auth.simple.SimpleUser;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@@ -296,7 +297,11 @@ public class UserService {
|
|||||||
|
|
||||||
// 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");
|
logger.warn(String.format("Cannot directly derive user DN when "
|
||||||
|
+ "multiple username attributes are specified. Please "
|
||||||
|
+ "define an LDAP search DN using the \"%s\" property "
|
||||||
|
+ "in your \"guacamole.properties\".",
|
||||||
|
LDAPGuacamoleProperties.LDAP_SEARCH_BIND_DN.getName()));
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user