mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-234: Don't close the connection after bind.
This commit is contained in:
committed by
Virtually Nick
parent
d7d622051f
commit
fc5c4c538e
@@ -156,14 +156,12 @@ public class LDAPConnectionService {
|
|||||||
// Disconnect if an error occurs during bind
|
// Disconnect if an error occurs during bind
|
||||||
catch (LdapException e) {
|
catch (LdapException e) {
|
||||||
logger.debug("Unable to bind to LDAP server.", e);
|
logger.debug("Unable to bind to LDAP server.", e);
|
||||||
|
disconnect(ldapConnection);
|
||||||
throw new GuacamoleInvalidCredentialsException(
|
throw new GuacamoleInvalidCredentialsException(
|
||||||
"Unable to bind to the LDAP server.",
|
"Unable to bind to the LDAP server.",
|
||||||
CredentialsInfo.USERNAME_PASSWORD);
|
CredentialsInfo.USERNAME_PASSWORD);
|
||||||
}
|
}
|
||||||
finally {
|
|
||||||
disconnect(ldapConnection);
|
|
||||||
}
|
|
||||||
|
|
||||||
return ldapConnection;
|
return ldapConnection;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user