Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

rename active directory to windows ad

xa285e80c4a6f
diff --git a/backend/src/ee/services/pam-account/pam-account-dal.ts b/backend/src/ee/services/pam-account/pam-account-dal.ts
index 5d800b9b0c..31f5eff444 100644
--- a/backend/src/ee/services/pam-account/pam-account-dal.ts
+++ b/backend/src/ee/services/pam-account/pam-account-dal.ts
@@ -8,7 +8,7 @@ import { ormify } from "@app/lib/knex";
import { PamAccountType } from "../pam/pam-enums";
import { PamRecordingStorageBackend } from "../pam-session-recording/pam-recording-enums";
-const recordingRequiredAccountTypes = [PamAccountType.Windows, PamAccountType.ActiveDirectory]
+const recordingRequiredAccountTypes = [PamAccountType.Windows, PamAccountType.WindowsAd]
.map((type) => `'${type}'`)
.join(", ");
diff --git a/backend/src/ee/services/pam-account/pam-account-schemas.ts b/backend/src/ee/services/pam-account/pam-account-schemas.ts
index a5645e4735..715e38b2fb 100644
--- a/backend/src/ee/services/pam-account/pam-account-schemas.ts
+++ b/backend/src/ee/services/pam-account/pam-account-schemas.ts
@@ -406,9 +406,9 @@ export const ACCOUNT_TYPE_CONFIGS = {
}
},
- [PamAccountType.ActiveDirectory]: {
- name: "Active Directory",
- icon: "Windows.png",
+ [PamAccountType.WindowsAd]: {
+ name: "Windows AD",
+ icon: "ActiveDirectory.png",
connectionDetails: z.object({
domain: z.string().trim().min(1).max(255),
dcAddress: z.string().trim().min(1).max(255),
@@ -428,8 +428,16 @@ export const ACCOUNT_TYPE_CONFIGS = {
username: z.string()
}),
ui: {
+ domain: {
+ label: "FQDN",
+ tooltip: "The fully qualified domain name of the Active Directory domain (e.g. corp.example.com)."
+ },
dcAddress: { label: "DC Address" },
- hosts: { label: "Allowed Hosts", widget: PamFieldWidget.Textarea },
+ hosts: {
+ label: "Allowed Hosts",
+ widget: PamFieldWidget.Textarea,
+ tooltip: "Hostnames or IP addresses this account is allowed to connect to. One per line or comma-separated."
+ },
port: { label: "LDAP Port", defaultValue: 389 },
rdpPort: { label: "RDP Port", defaultValue: 3389 },
useLdaps: { label: "Use LDAPS" },
@@ -548,7 +556,7 @@ export const extractGatewayTarget = async (
}
return { host: firstHost, port: 27017 };
}
- case PamAccountType.ActiveDirectory:
+ case PamAccountType.WindowsAd:
return {
host: (validated as { hosts: string[]; rdpPort: number }).hosts[0],
port: (validated as { hosts: string[]; rdpPort: number }).rdpPort
@@ -567,7 +575,7 @@ export enum PamAccountAccessibilityIssue {
}
export const accountTypeRequiresRecording = (accountType: PamAccountType): boolean =>
- accountType === PamAccountType.Windows || accountType === PamAccountType.ActiveDirectory;
+ accountType === PamAccountType.Windows || accountType === PamAccountType.WindowsAd;
export const getAccountAccessibilityIssues = (account: {
accountType: PamAccountType | string;
diff --git a/backend/src/ee/services/pam-project/pam-project-bootstrap.ts b/backend/src/ee/services/pam-project/pam-project-bootstrap.ts
index c41cf06294..f466a9f9b5 100644
--- a/backend/src/ee/services/pam-project/pam-project-bootstrap.ts
+++ b/backend/src/ee/services/pam-project/pam-project-bootstrap.ts
@@ -166,8 +166,8 @@ export const DEFAULT_ACCOUNT_TEMPLATES: TDefaultTemplate[] = [
}
},
{
- name: "active-directory",
- type: PamAccountType.ActiveDirectory,
+ name: "windows-ad",
+ type: PamAccountType.WindowsAd,
settings: {
recordingEnabled: true,
recordingStorageBackend: PamRecordingStorageBackend.Postgres,
diff --git a/backend/src/ee/services/pam-web-access/pam-session-handlers.ts b/backend/src/ee/services/pam-web-access/pam-session-handlers.ts
index 5ac04010c3..40440cfb8c 100644
--- a/backend/src/ee/services/pam-web-access/pam-session-handlers.ts
+++ b/backend/src/ee/services/pam-web-access/pam-session-handlers.ts
@@ -33,8 +33,8 @@ export const SESSION_HANDLERS: Partial<Record<PamAccountType, TSessionHandlerEnt
gatewayAccountType: PamAccountType.Windows,
handler: handleRdpSession
},
- // AD accounts use RDP through the Windows gateway protocol
- [PamAccountType.ActiveDirectory]: {
+ // Windows AD accounts use RDP through the Windows gateway protocol
+ [PamAccountType.WindowsAd]: {
gatewayAccountType: PamAccountType.Windows,
handler: handleRdpSession
}
diff --git a/backend/src/ee/services/pam-web-access/pam-web-access-service.ts b/backend/src/ee/services/pam-web-access/pam-web-access-service.ts
index 81f0bb9b0f..6a1dcf6615 100644
--- a/backend/src/ee/services/pam-web-access/pam-web-access-service.ts
+++ b/backend/src/ee/services/pam-web-access/pam-web-access-service.ts
@@ -445,7 +445,7 @@ export const pamWebAccessServiceFactory = ({
};
const isRdp =
- account.accountType === PamAccountType.Windows || account.accountType === PamAccountType.ActiveDirectory;
+ account.accountType === PamAccountType.Windows || account.accountType === PamAccountType.WindowsAd;
relayServer = await setupRelayServer({
protocol: isRdp ? GatewayProxyProtocol.PamRdpBrowser : GatewayProxyProtocol.Pam,
diff --git a/backend/src/ee/services/pam/pam-enums.ts b/backend/src/ee/services/pam/pam-enums.ts
index 21a9628191..df3cae90b8 100644
--- a/backend/src/ee/services/pam/pam-enums.ts
+++ b/backend/src/ee/services/pam/pam-enums.ts
@@ -9,7 +9,7 @@ export enum PamAccountType {
Kubernetes = "kubernetes",
AwsIam = "aws-iam",
Windows = "windows",
- ActiveDirectory = "active-directory"
+ WindowsAd = "windows-ad"
}
export enum PamResourceRole {
diff --git a/frontend/src/hooks/api/pam/enums.ts b/frontend/src/hooks/api/pam/enums.ts
index 7d33f217e0..e9c85aaf07 100644
--- a/frontend/src/hooks/api/pam/enums.ts
+++ b/frontend/src/hooks/api/pam/enums.ts
@@ -9,7 +9,7 @@ export enum PamAccountType {
Kubernetes = "kubernetes",
AwsIam = "aws-iam",
Windows = "windows",
- ActiveDirectory = "active-directory"
+ WindowsAd = "windows-ad"
}
export enum PamPolicyType {
diff --git a/frontend/src/hooks/api/pam/types/index.ts b/frontend/src/hooks/api/pam/types/index.ts
index 60c975014b..68ba81f456 100644
--- a/frontend/src/hooks/api/pam/types/index.ts
+++ b/frontend/src/hooks/api/pam/types/index.ts
@@ -61,7 +61,7 @@ export enum PamAccountAccessibilityIssue {
}
export const accountTypeRequiresRecording = (type: PamAccountType): boolean =>
- type === PamAccountType.Windows || type === PamAccountType.ActiveDirectory;
+ type === PamAccountType.Windows || type === PamAccountType.WindowsAd;
export type TPamAccountSettingsOverrides = {
recordingS3Config?: { bucket: string; region: string; keyPrefix?: string };
diff --git a/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx b/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
index 7bfa05ca19..18fc72c3c6 100644
--- a/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
+++ b/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
@@ -125,7 +125,7 @@ const PageContent = () => {
}
if (
account.accountType === PamAccountType.Windows ||
- account.accountType === PamAccountType.ActiveDirectory
+ account.accountType === PamAccountType.WindowsAd
) {
return <RdpContent account={account} reason={reason} mfaSessionId={mfaSessionId} />;
}
diff --git a/frontend/src/pages/pam/PamSessionsPage/components/SessionDetailSheet.tsx b/frontend/src/pages/pam/PamSessionsPage/components/SessionDetailSheet.tsx
index baa2f7171b..45259c2554 100644
--- a/frontend/src/pages/pam/PamSessionsPage/components/SessionDetailSheet.tsx
+++ b/frontend/src/pages/pam/PamSessionsPage/components/SessionDetailSheet.tsx
@@ -291,7 +291,7 @@ export const SessionDetailSheet = ({ sessionId, isOpen, onOpenChange, onTerminat
const isRdpSession =
session.accountType === PamAccountType.Windows ||
- session.accountType === PamAccountType.ActiveDirectory;
+ session.accountType === PamAccountType.WindowsAd;
const tabs = isRdpSession
? [