directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject [4/4] directory-kerby git commit: Fix close connection
Date Thu, 25 Jun 2015 22:20:48 GMT
Fix close connection


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/2b7a812b
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/2b7a812b
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/2b7a812b

Branch: refs/heads/master
Commit: 2b7a812b7325308d338a41a7330970bd55a78998
Parents: 54f0d72
Author: Stefan Seelmann <mail@stefan-seelmann.de>
Authored: Fri Jun 26 00:16:25 2015 +0200
Committer: Stefan Seelmann <mail@stefan-seelmann.de>
Committed: Fri Jun 26 00:16:25 2015 +0200

----------------------------------------------------------------------
 .../kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/2b7a812b/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java
----------------------------------------------------------------------
diff --git a/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java
b/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java
index eec9f53..e658c16 100644
--- a/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java
+++ b/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java
@@ -96,8 +96,7 @@ public class LdapIdentityBackend extends AbstractIdentityBackend {
     }
 
     public void closeConnection() throws LdapException, IOException {
-        if (this.connection.connect()) {
-            this.connection.unBind();
+        if (this.connection.isConnected()) {
             this.connection.close();
         }
     }


Mime
View raw message