From 3f4deb91789189521d577457bd6da27de8fd75b1 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Wed, 07 Oct 2026 08:31:10 +0000
Subject: [PATCH] [#1153] Parse the whole DN string, and build or split DN strings through DN instead of string operations (#1171)

---
 opendj-server-legacy/src/main/java/org/opends/server/monitors/ConnectionHandlerMonitor.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/monitors/ConnectionHandlerMonitor.java b/opendj-server-legacy/src/main/java/org/opends/server/monitors/ConnectionHandlerMonitor.java
index d598e34..f6e03d4 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/monitors/ConnectionHandlerMonitor.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/monitors/ConnectionHandlerMonitor.java
@@ -13,6 +13,7 @@
  *
  * Copyright 2006-2010 Sun Microsystems, Inc.
  * Portions Copyright 2014-2016 ForgeRock AS.
+ * Portions Copyright 2026 3A Systems, LLC.
  */
 package org.opends.server.monitors;
 
@@ -22,6 +23,7 @@
 import java.util.Collection;
 import java.util.LinkedList;
 
+import org.forgerock.opendj.ldap.DN;
 import org.forgerock.opendj.server.config.server.ConnectionHandlerCfg;
 import org.forgerock.opendj.server.config.server.MonitorProviderCfg;
 import org.opends.server.api.ClientConnection;
@@ -67,7 +69,8 @@
   @Override
   public void initializeMonitorProvider(MonitorProviderCfg configuration)
   {
-    monitorName = connectionHandler.getConnectionHandlerName();
+    // The name of the connection handler is the value of the RDN of the monitor entry.
+    monitorName = DN.escapeAttributeValue(connectionHandler.getConnectionHandlerName());
   }
 
 

--
Gitblit v1.10.0