import React from 'react'; import { Globe, Power, Server, Shield, User, Layers, Lock, Wifi, RotateCcw } from 'lucide-react'; import { cn } from '@/lib/utils'; interface LdapManagerProps { ldapConfig: any; setLdapConfig: (config: any) => void; testingLdap: boolean; onTestLdap: () => void; onUpdateLdap: () => void; } export default function LdapManager({ ldapConfig, setLdapConfig, testingLdap, onTestLdap, onUpdateLdap }: LdapManagerProps) { return (

Enterprise LDAP

LDAP Authorization

{ldapConfig.ldap_enabled ? "External Directory Active" : "Internal Authentication Only"}

setLdapConfig({...ldapConfig, server_uri: e.target.value})} className="w-full bg-background/80 border border-slate-800 rounded-2xl py-2.5 pl-10 pr-4 text-xs font-normal text-white outline-none focus:border-primary/50 transition-all font-mono" />
setLdapConfig({...ldapConfig, base_dn: e.target.value})} className="w-full bg-background/80 border border-slate-800 rounded-2xl py-2.5 pl-10 pr-4 text-xs font-normal text-white outline-none focus:border-primary/50 transition-all font-mono" />
setLdapConfig({...ldapConfig, user_template: e.target.value})} className="w-full bg-background/80 border border-slate-800 rounded-2xl py-2.5 pl-10 pr-4 text-xs font-normal text-white outline-none focus:border-primary/50 transition-all font-mono" />
setLdapConfig({...ldapConfig, groups_dn: e.target.value})} className="w-full bg-background/80 border border-slate-800 rounded-2xl py-2.5 pl-10 pr-4 text-xs font-normal text-white outline-none focus:border-primary/50 transition-all font-mono" />

Use TLS

{ldapConfig.use_tls ? "Encrypted Channel" : "Standard Link"}

); }