mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Sean King
13.51.2020 b0aff1947fb8ee494186a1624cc6d3b277a57093
Log Connections (#122)

Update the LDAPConnectionHandler2 to log connections, similarly to
LDAPConnectionHandler.

Co-authored-by: Sean King <sking@ingeniaservices.com>
1 files modified
2 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/forgerock/opendj/reactive/LDAPConnectionHandler2.java 2 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/forgerock/opendj/reactive/LDAPConnectionHandler2.java
@@ -18,6 +18,7 @@
import static java.util.Collections.*;
import static org.opends.messages.ProtocolMessages.*;
import static org.opends.server.loggers.AccessLogger.logConnect;
import static org.opends.server.util.ServerConstants.*;
import static org.opends.server.util.StaticUtils.*;
@@ -642,6 +643,7 @@
                            LDAPClientContext clientContext) throws LdapException {
                        final LDAPClientConnection2 conn = canAccept(clientContext);
                        clientConnections.add(conn);
                        logConnect(conn);
                        clientContext.addListener(new LDAPClientContextEventListener() {
                            @Override
                            public void handleConnectionError(final LDAPClientContext context, final Throwable error) {