mirror of
https://github.com/freedbygrace/ActiveDirectoryManager.git
synced 2026-07-26 11:59:14 +00:00
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
This commit is contained in:
@@ -88,8 +88,8 @@ const VariableSelector: React.FC<VariableSelectorProps> = ({ 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<VariableSelectorProps> = ({ 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('');
|
||||
|
||||
Reference in New Issue
Block a user