From ff84ea888980b0e57f0fc28d1bea80a660bfb124 Mon Sep 17 00:00:00 2001 From: alphaeusmote <41258468-alphaeusmote@users.noreply.replit.com> Date: Thu, 10 Apr 2025 21:44:25 +0000 Subject: [PATCH] Fix: Improve dynamic group variable formatting Replit-Commit-Author: Agent Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/f9270af8-e404-4ab7-8924-be9cfc36d854.jpg --- .../src/components/dynamic-groups/variable-selector.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/components/dynamic-groups/variable-selector.tsx b/client/src/components/dynamic-groups/variable-selector.tsx index ea7cff6..1927c93 100644 --- a/client/src/components/dynamic-groups/variable-selector.tsx +++ b/client/src/components/dynamic-groups/variable-selector.tsx @@ -88,8 +88,8 @@ const VariableSelector: React.FC = ({ onSelectVariable, c const formattedVar = `OU={${attribute}}`; onSelectVariable(formattedVar); } else { - // Format for group name with CN prefix - const formattedVar = `CN={${attribute}}`; + // For group name variables, don't add CN= prefix, just the variable + const formattedVar = `{${attribute}}`; onSelectVariable(formattedVar); } setIsOpen(false); @@ -110,8 +110,8 @@ const VariableSelector: React.FC = ({ onSelectVariable, c const formattedVar = `OU={${customAttribute.trim()}}`; onSelectVariable(formattedVar); } else { - // Format custom attribute for group name with CN prefix - const formattedVar = `CN={${customAttribute.trim()}}`; + // For group name variables, don't add CN= prefix, just the variable + const formattedVar = `{${customAttribute.trim()}}`; onSelectVariable(formattedVar); } setCustomAttribute('');