Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Finish preliminary LDAP
Tuan Danga28431bfe7a9
diff --git a/backend/src/ee/services/license/__mocks__/licence-fns.ts b/backend/src/ee/services/license/__mocks__/licence-fns.tsindex 76fe063edc..8f52939c5b 100644--- a/backend/src/ee/services/license/__mocks__/licence-fns.ts+++ b/backend/src/ee/services/license/__mocks__/licence-fns.ts@@ -17,8 +17,9 @@ export const getDefaultOnPremFeatures = () => {customAlerts: false,auditLogs: false,auditLogsRetentionDays: 0,- samlSSO: true,- scim: true,+ samlSSO: false,+ scim: false,+ ldap: false,status: null,trial_end: null,has_used_trial: true,diff --git a/backend/src/ee/services/license/licence-fns.ts b/backend/src/ee/services/license/licence-fns.tsindex 98f8c5f24f..8dca967370 100644--- a/backend/src/ee/services/license/licence-fns.ts+++ b/backend/src/ee/services/license/licence-fns.ts@@ -23,9 +23,9 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({customAlerts: false,auditLogs: false,auditLogsRetentionDays: 0,- samlSSO: true,- scim: true,- ldap: true,+ samlSSO: false,+ scim: false,+ ldap: false,status: null,trial_end: null,has_used_trial: true,diff --git a/backend/src/ee/services/license/license-types.ts b/backend/src/ee/services/license/license-types.tsindex 830cacf99b..80f422380b 100644--- a/backend/src/ee/services/license/license-types.ts+++ b/backend/src/ee/services/license/license-types.ts@@ -24,9 +24,9 @@ export type TFeatureSet = {customAlerts: false;auditLogs: false;auditLogsRetentionDays: 0;- samlSSO: true;- scim: true;- ldap: true;+ samlSSO: false;+ scim: false;+ ldap: false;status: null;trial_end: null;has_used_trial: true;diff --git a/docs/documentation/platform/ldap/general.mdx b/docs/documentation/platform/ldap/general.mdxnew file mode 100644index 0000000000..81c291c22d--- /dev/null+++ b/docs/documentation/platform/ldap/general.mdx@@ -0,0 +1,36 @@+---+title: "General LDAP"+description: "Log in to Infisical with LDAP"+---++<Info>+ LDAP is a paid feature.++ If you're using Infisical Cloud, then it is available under the **Enterprise Tier**. If you're self-hosting Infisical,+ then you should contact [email protected] to purchase an enterprise license to use it.+</Info>++You can configure your organization in Infisical to have members authenticate with the platform via [LDAP](https://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol)++<Steps>+ <Step title="Prepare the LDAP configuration in Infisical">+ In Infisical, head to your Organization Settings > Authentication > LDAP Configuration and select **Set up LDAP**.++ Next, input your LDAP server settings.++ ++ Here's some guidance for each field:++ - URL: The LDAP server to connect to such as `ldap://ldap.your-org.com`, `ldaps://ldap.myorg.com:636` (for connection over SSL/TLS), etc.+ - Bind DN: The distinguished name of object to bind when performing the user search such as `cn=infisical,ou=Users,dc=acme,dc=com`.+ - Bind Pass: The password to use along with `Bind DN` when performing the user search.+ - Search Base / User DN: Base DN under which to perform user search such as `ou=Users,dc=example,dc=com`+ - CA Certificate: The CA certificate to use when verifying the LDAP server certificate.+ </Step>+ <Step title="Enable LDAP in Infisical">+ Enabling LDAP allows members in your organization to log into Infisical via LDAP.++ + </Step>+</Steps>\ No newline at end of filediff --git a/docs/documentation/platform/ldap/overview.mdx b/docs/documentation/platform/ldap/overview.mdxindex 9d16ed8790..1c5723b7e7 100644--- a/docs/documentation/platform/ldap/overview.mdx+++ b/docs/documentation/platform/ldap/overview.mdx@@ -15,4 +15,9 @@ To note, configuring LDAP retains the end-to-end encrypted architecture of InfisLDAP providers:-- [JumpCloud LDAP](/documentation/platform/ldap/jumpcloud)\ No newline at end of file+- Active Directory+- [JumpCloud LDAP](/documentation/platform/ldap/jumpcloud)+- AWS Directory Service+- Foxpass++Check out the general instructions for configuring LDAP [here](/documentation/platform/ldap/general).\ No newline at end of filediff --git a/docs/mint.json b/docs/mint.jsonindex 3c2c210eb6..726aa3b025 100644--- a/docs/mint.json+++ b/docs/mint.json@@ -153,7 +153,8 @@"group": "LDAP","pages": ["documentation/platform/ldap/overview",- "documentation/platform/ldap/jumpcloud"+ "documentation/platform/ldap/jumpcloud",+ "documentation/platform/ldap/general"]},{diff --git a/frontend/src/hooks/api/subscriptions/types.ts b/frontend/src/hooks/api/subscriptions/types.tsindex 5680da02dd..97b287084c 100644--- a/frontend/src/hooks/api/subscriptions/types.ts+++ b/frontend/src/hooks/api/subscriptions/types.ts@@ -19,6 +19,7 @@ export type SubscriptionPlan = {environmentLimit: number;samlSSO: boolean;scim: boolean;+ ldap: boolean;status:| "incomplete"| "incomplete_expired"