@Override public AuthenticationHandlerResponse authenticate(final AuthenticationCriteria ac) throws LdapException { logger.debug("authenticate criteria={}", ac); AuthenticationHandlerResponse response = null; final Connection conn = getConnection(); boolean closeConn = false; try { response = authenticateInternal(conn, ac); } catch (LdapException | RuntimeException e) { closeConn = true; throw e; } finally { if (closeConn) { conn.close(); } } logger.debug("authenticate response={} for criteria={}", response, ac); return response; }
@Override public AuthenticationHandlerResponse authenticate(final AuthenticationCriteria ac) throws LdapException { logger.debug("authenticate criteria={}", ac); AuthenticationHandlerResponse response = null; final Connection conn = getConnection(); boolean closeConn = false; try { response = authenticateInternal(conn, ac); } catch (LdapException | RuntimeException e) { closeConn = true; throw e; } finally { if (closeConn) { conn.close(); } } logger.debug("authenticate response={} for criteria={}", response, ac); return response; }
@Override public AuthenticationHandlerResponse authenticate(final AuthenticationCriteria ac) throws LdapException { logger.debug("authenticate criteria={}", ac); AuthenticationHandlerResponse response = null; final Connection conn = getConnection(); boolean closeConn = false; try { response = authenticateInternal(conn, ac); } catch (LdapException | RuntimeException e) { closeConn = true; throw e; } finally { if (closeConn) { conn.close(); } } logger.debug("authenticate response={} for criteria={}", response, ac); return response; }