mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Merge 1.1.0 changes back to master.
This commit is contained in:
@@ -129,7 +129,8 @@ public class LDAPConnectionService {
|
|||||||
throws GuacamoleException {
|
throws GuacamoleException {
|
||||||
|
|
||||||
// Get ldapConnection and try to connect and bind.
|
// Get ldapConnection and try to connect and bind.
|
||||||
try (LdapNetworkConnection ldapConnection = createLDAPConnection()) {
|
LdapNetworkConnection ldapConnection = createLDAPConnection();
|
||||||
|
try {
|
||||||
|
|
||||||
// Connect to LDAP server
|
// Connect to LDAP server
|
||||||
ldapConnection.connect();
|
ldapConnection.connect();
|
||||||
@@ -155,6 +156,7 @@ public class LDAPConnectionService {
|
|||||||
|
|
||||||
// Disconnect if an error occurs during bind
|
// Disconnect if an error occurs during bind
|
||||||
catch (LdapException e) {
|
catch (LdapException e) {
|
||||||
|
ldapConnection.close();
|
||||||
logger.debug("Unable to bind to LDAP server.", e);
|
logger.debug("Unable to bind to LDAP server.", e);
|
||||||
throw new GuacamoleInvalidCredentialsException(
|
throw new GuacamoleInvalidCredentialsException(
|
||||||
"Unable to bind to the LDAP server.",
|
"Unable to bind to the LDAP server.",
|
||||||
|
Reference in New Issue
Block a user