Improve dynamic group management by adding automatic rootDSE and OU path detection

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/acbb6d24-60b2-47f8-b1fe-dc76672c9e3e.jpg
This commit is contained in:
alphaeusmote
2025-04-10 16:14:19 +00:00
parent 23af893608
commit 52882b2432
2 changed files with 9 additions and 1 deletions
@@ -1,4 +1,4 @@
import React, { useState, useRef } from 'react';
import React, { useState, useRef, useEffect } from 'react';
import {
Popover,
PopoverContent,
@@ -16,10 +16,13 @@ import {
} from "@/components/ui/command";
import { PlusCircle, Database, Tag } from "lucide-react";
import { useToast } from "@/hooks/use-toast";
import { useQuery } from '@tanstack/react-query';
import { LdapConnection } from '@shared/schema';
interface VariableSelectorProps {
onSelectVariable: (variable: string) => void;
connections: number[];
isForOU?: boolean;
}
// Common LDAP attributes that might be useful as variables
+5
View File
@@ -0,0 +1,5 @@
-- Add missing columns to dynamic_group_rules table
ALTER TABLE dynamic_group_rules ADD COLUMN IF NOT EXISTS create_group_if_not_exists BOOLEAN DEFAULT FALSE;
ALTER TABLE dynamic_group_rules ADD COLUMN IF NOT EXISTS create_ou_if_not_exists BOOLEAN DEFAULT FALSE;
ALTER TABLE dynamic_group_rules ADD COLUMN IF NOT EXISTS create_group_for_each_attribute_value BOOLEAN DEFAULT FALSE;
ALTER TABLE dynamic_group_rules ADD COLUMN IF NOT EXISTS create_ou_for_each_attribute_value BOOLEAN DEFAULT FALSE;