[exo-jcr-commits] exo-jcr SVN: r2949 - core/branches/2.3.x/exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/impl.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Aug 19 08:52:35 EDT 2010
Author: tolusha
Date: 2010-08-19 08:52:34 -0400 (Thu, 19 Aug 2010)
New Revision: 2949
Modified:
core/branches/2.3.x/exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/impl/LDAPServiceImpl.java
Log:
EXOJCR-909: revert changes
Modified: core/branches/2.3.x/exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/impl/LDAPServiceImpl.java
===================================================================
--- core/branches/2.3.x/exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/impl/LDAPServiceImpl.java 2010-08-19 12:50:39 UTC (rev 2948)
+++ core/branches/2.3.x/exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/impl/LDAPServiceImpl.java 2010-08-19 12:52:34 UTC (rev 2949)
@@ -164,11 +164,9 @@
props.put(Context.SECURITY_PRINCIPAL, userDN);
props.put(Context.SECURITY_CREDENTIALS, password);
props.put("com.sun.jndi.ldap.connect.pool", "false");
-
- InitialContext ctx = null;
try
{
- ctx = new InitialLdapContext(props, null);
+ new InitialLdapContext(props, null);
return true;
}
catch (NamingException e)
@@ -177,20 +175,6 @@
e.printStackTrace();
return false;
}
- finally
- {
- try
- {
- if (ctx != null)
- {
- ctx.close();
- }
- }
- catch (NamingException ne)
- {
- LOG.debug("Can't close LDAP context", ne);
- }
- }
}
/**
More information about the exo-jcr-commits
mailing list