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="input-field w-full pl-9 text-xs font-mono" />
setLdapConfig({...ldapConfig, base_dn: e.target.value})} className="input-field w-full pl-9 text-xs font-mono" />
setLdapConfig({...ldapConfig, user_template: e.target.value})} className="input-field w-full pl-9 text-xs font-mono" />
setLdapConfig({...ldapConfig, groups_dn: e.target.value})} className="input-field w-full pl-9 text-xs font-mono" />

Use TLS

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

); }