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
docs(identities): ldap auth
Daniel Hougaard6addde265012
diff --git a/docs/api-reference/endpoints/ldap-auth/attach.mdx b/docs/api-reference/endpoints/ldap-auth/attach.mdxnew file mode 100644index 0000000000..5128788876--- /dev/null+++ b/docs/api-reference/endpoints/ldap-auth/attach.mdx@@ -0,0 +1,4 @@+---+title: "Attach"+openapi: "POST /api/v1/auth/ldap-auth/identities/{identityId}"+---diff --git a/docs/api-reference/endpoints/ldap-auth/login.mdx b/docs/api-reference/endpoints/ldap-auth/login.mdxnew file mode 100644index 0000000000..737afb8570--- /dev/null+++ b/docs/api-reference/endpoints/ldap-auth/login.mdx@@ -0,0 +1,4 @@+---+title: "Login"+openapi: "POST /api/v1/auth/ldap-auth/login"+---diff --git a/docs/api-reference/endpoints/ldap-auth/retrieve.mdx b/docs/api-reference/endpoints/ldap-auth/retrieve.mdxnew file mode 100644index 0000000000..fe4974cde9--- /dev/null+++ b/docs/api-reference/endpoints/ldap-auth/retrieve.mdx@@ -0,0 +1,4 @@+---+title: "Retrieve"+openapi: "GET /api/v1/auth/ldap-auth/identities/{identityId}"+---diff --git a/docs/api-reference/endpoints/ldap-auth/revoke.mdx b/docs/api-reference/endpoints/ldap-auth/revoke.mdxnew file mode 100644index 0000000000..2ef0996fd1--- /dev/null+++ b/docs/api-reference/endpoints/ldap-auth/revoke.mdx@@ -0,0 +1,4 @@+---+title: "Revoke"+openapi: "DELETE /api/v1/auth/ldap-auth/identities/{identityId}"+---diff --git a/docs/api-reference/endpoints/ldap-auth/update.mdx b/docs/api-reference/endpoints/ldap-auth/update.mdxnew file mode 100644index 0000000000..74b54efd38--- /dev/null+++ b/docs/api-reference/endpoints/ldap-auth/update.mdx@@ -0,0 +1,4 @@+---+title: "Update"+openapi: "PATCH /api/v1/auth/ldap-auth/identities/{identityId}"+---diff --git a/docs/documentation/platform/identities/ldap-auth/general.mdx b/docs/documentation/platform/identities/ldap-auth/general.mdxnew file mode 100644index 0000000000..d2d7e98bc9--- /dev/null+++ b/docs/documentation/platform/identities/ldap-auth/general.mdx@@ -0,0 +1,92 @@+---+title: General+description: "Learn how to authenticate with Infisical using LDAP."+---+++<Note>+ 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.+</Note>++**LDAP Auth** is an LDAP based authentication method that allows you to authenticate with Infisical using a machine identity configured with an [LDAP](https://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol) directory.++### Guide+<Steps>+ <Step title="Creating an identity">+ To create an identity, head to your Organization Settings > Access Control > Machine Identities and press **Create identity**.++ ++ When creating an identity, you specify an organization level role for it to assume; you can configure roles in Organization Settings > Access Control > Organization Roles.++ ++ Now input a few details for your new identity. Here's some guidance for each field:++ - Name (required): A friendly name for the identity.+ - Role (required): A role from the Organization Roles tab for the identity to assume. The organization role assigned will determine what organization level resources this identity can have access to.++ Once you've created an identity, you'll be redirected to a page where you can manage the identity.+ </Step>++ <Step title="Configuring LDAP auth for your identity">+ To configure LDAP auth for your identity, press the **Add Auth Method** button on the identity's page.++ ++ Now select **LDAP Auth** from the list of available auth methods for the identity.++ +++ After selecting **LDAP Auth**, you'll see the form you need to fill out to configure LDAP auth for your identity. The following fields are available:++ - `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 DN to bind to the LDAP server with.+ - `Bind Pass`: The password to bind to the LDAP server with.+ - `Search Base / DN`: Base DN under which to perform user search such as `ou=Users,dc=acme,dc=com`.+ - `User Search Filter`: Template used to construct the LDAP user search filter such as `(uid={{username}})`; use literal `{{username}}` to have the given username used in the search. The default is `(uid={{username}})` which is compatible with several common directory schemas.+ - `Required Attributes`: A key/value pair of attributes that must be present in the LDAP user entry for them to be authenticated. As an example, if you set key `uid` to value `user1,user2,user3`, then only users with `uid` of `user1`, `user2`, or `user3` will be able to login with this identity. Each value is a comma separated list of attributes.+ - `CA Certificate`: The CA certificate to use when verifying the LDAP server certificate. This field is optional but recommended.+ - `Access Token TTL` _(default is 2592000 equivalent to 30 days)_: The lifetime for an access token in seconds. This value will be referenced at renewal time.+ - `Access Token Max TTL` _(default is 2592000 equivalent to 30 days)_: The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.+ - `Access Token Max Number of Uses` _(default is 0)_: The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses.+ - `Access Token Trusted IPs`: The IPs or CIDR ranges that access tokens can be used from. By default, each token is given the 0.0.0.0/0, allowing usage from any network address.++ Once you've filled out the form, press **Add** to save your changes.++ ++ <Step title="Authenticating with the identity">+ After configuring LDAP auth for your identity, you can authenticate with the identity and obtain an access token, using your LDAP credentials.++ ```bash+ curl --request POST \+ --url https://app.infisical.com/api/v1/auth/ldap-auth/login \+ --header 'Content-Type: application/json' \+ --data '{+ "identityId": "<string>",+ "username": "<string>",+ "password": "<string>"+ }'+ ```++ <Note>+ For EU Cloud and Self-Hosted users, make sure to replace `https://app.infisical.com` with `https://eu.infisical.com` or your self-hosted instance's URL in the request URL.+ </Note>++ If successful, you'll receive an access token in the response body.++ ```json+ {+ "accessToken": "your-access-token",+ "expiresIn": 2592000,+ "accessTokenMaxTTL": 2592000,+ "tokenType": "Bearer"+ }+ ```++ You can read more about the login API endpoint [here](/api-reference/endpoints/ldap-auth/login).+ </Step>+ </Step>+</Steps>\ No newline at end of filediff --git a/docs/documentation/platform/identities/ldap-auth/jumpcloud.mdx b/docs/documentation/platform/identities/ldap-auth/jumpcloud.mdxnew file mode 100644index 0000000000..cb3a6f3096--- /dev/null+++ b/docs/documentation/platform/identities/ldap-auth/jumpcloud.mdx@@ -0,0 +1,102 @@+---+title: JumpCloud+description: "Learn how to authenticate with Infisical using LDAP with JumpCloud."+---+++<Note>+ 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.+</Note>++**LDAP Auth** is an LDAP based authentication method that allows you to authenticate with Infisical using a machine identity configured with an [LDAP](https://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol) directory.++### Guide+<Steps>++ <Step title="Prepare LDAP in JumpCloud">+ In JumpCloud, head to USER MANAGEMENT > Users and create a new user via the Manual user entry option.+ This user will be used as a privileged service account to facilitate Infisical's ability to bind/search the LDAP directory.++ Next after creating the user, under User Security Settings and Permissions > Permission Settings, check the box next to Enable as LDAP Bind DN.++ + </Step>++ <Step title="Creating an identity">+ To create an identity, head to your Organization Settings > Access Control > Machine Identities and press **Create identity**.++ ++ When creating an identity, you specify an organization level role for it to assume; you can configure roles in Organization Settings > Access Control > Organization Roles.++ ++ Now input a few details for your new identity. Here's some guidance for each field:++ - Name (required): A friendly name for the identity.+ - Role (required): A role from the Organization Roles tab for the identity to assume. The organization role assigned will determine what organization level resources this identity can have access to.++ Once you've created an identity, you'll be redirected to a page where you can manage the identity.+ </Step>++ <Step title="Configuring LDAP auth for your identity">+ To configure LDAP auth for your identity, press the **Add Auth Method** button on the identity's page.++ ++ Now select **LDAP Auth** from the list of available auth methods for the identity.++ +++ After selecting **LDAP Auth**, you'll see the form you need to fill out to configure LDAP auth for your identity. The following fields are available:++ - `URL`: The LDAP server to connect to (`ldaps://ldap.jumpcloud.com:636`).+ - `Bind DN`: The distinguished name of object to bind when performing the user search (`uid=<ldap-user-username>,ou=Users,o=<your-org-id>,dc=jumpcloud,dc=com`).+ - `Bind Pass`: The password to use along with Bind DN when performing the user search. This is the password for the user created in the previous step.+ - `Search Base / DN`: Base DN under which to perform user search (`ou=Users,o=<your-org-id>,dc=jumpcloud,dc=com`).+ - `User Search Filter`: Template used to construct the LDAP user search filter (`(uid={{username}})`).+ - `Required Attributes`: A key/value pair of attributes that must be present in the LDAP user entry for them to be authenticated. As an example, if you set key `uid` to value `user1,user2,user3`, then only users with `uid` of `user1`, `user2`, or `user3` will be able to login with this identity. Each value is a comma separated list of attributes.+ - `CA Certificate`: The CA certificate to use when verifying the LDAP server certificate (instructions to obtain the certificate for JumpCloud [here](https://jumpcloud.com/support/connect-to-ldap-with-tls-ssl)).+ - `Access Token TTL` _(default is 2592000 equivalent to 30 days)_: The lifetime for an access token in seconds. This value will be referenced at renewal time.+ - `Access Token Max TTL` _(default is 2592000 equivalent to 30 days)_: The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.+ - `Access Token Max Number of Uses` _(default is 0)_: The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses.+ - `Access Token Trusted IPs`: The IPs or CIDR ranges that access tokens can be used from. By default, each token is given the 0.0.0.0/0, allowing usage from any network address.++ Once you've filled out the form, press **Add** to save your changes.++ ++ <Step title="Authenticating with the identity">+ After configuring LDAP auth for your identity, you can authenticate with the identity and obtain an access token, using your LDAP credentials.++ ```bash+ curl --request POST \+ --url https://app.infisical.com/api/v1/auth/ldap-auth/login \+ --header 'Content-Type: application/json' \+ --data '{+ "identityId": "<string>",+ "username": "<string>",+ "password": "<string>"+ }'+ ```++ <Note>+ For EU Cloud and Self-Hosted users, make sure to replace `https://app.infisical.com` with `https://eu.infisical.com` or your self-hosted instance's URL in the request URL.+ </Note>++ If successful, you'll receive an access token in the response body.++ ```json+ {+ "accessToken": "your-access-token",+ "expiresIn": 2592000,+ "accessTokenMaxTTL": 2592000,+ "tokenType": "Bearer"+ }+ ```++ You can read more about the login API endpoint [here](/api-reference/endpoints/ldap-auth/login).+ </Step>+ </Step>+</Steps>\ No newline at end of filediff --git a/docs/images/platform/identities/ldap/identities-org-add-auth-method-modal.png b/docs/images/platform/identities/ldap/identities-org-add-auth-method-modal.pngnew file mode 100644index 0000000000..e9a5f276c7Binary files /dev/null and b/docs/images/platform/identities/ldap/identities-org-add-auth-method-modal.png differdiff --git a/docs/images/platform/identities/ldap/identities-org-add-auth-method.png b/docs/images/platform/identities/ldap/identities-org-add-auth-method.pngnew file mode 100644index 0000000000..95d301010dBinary files /dev/null and b/docs/images/platform/identities/ldap/identities-org-add-auth-method.png differdiff --git a/docs/images/platform/identities/ldap/identities-org-configure-ldap.png b/docs/images/platform/identities/ldap/identities-org-configure-ldap.pngnew file mode 100644index 0000000000..c9dfb4950eBinary files /dev/null and b/docs/images/platform/identities/ldap/identities-org-configure-ldap.png differdiff --git a/docs/images/platform/identities/ldap/identities-org-create-identity-modal.png b/docs/images/platform/identities/ldap/identities-org-create-identity-modal.pngnew file mode 100644index 0000000000..3ac6555e47Binary files /dev/null and b/docs/images/platform/identities/ldap/identities-org-create-identity-modal.png differdiff --git a/docs/images/platform/identities/ldap/identities-org-create-identity.png b/docs/images/platform/identities/ldap/identities-org-create-identity.pngnew file mode 100644index 0000000000..1086f65215Binary files /dev/null and b/docs/images/platform/identities/ldap/identities-org-create-identity.png differdiff --git a/docs/images/platform/identities/ldap/jumpcloud-users-management.png b/docs/images/platform/identities/ldap/jumpcloud-users-management.pngnew file mode 100644index 0000000000..cc5dc13ca9Binary files /dev/null and b/docs/images/platform/identities/ldap/jumpcloud-users-management.png differdiff --git a/docs/mint.json b/docs/mint.jsonindex a25a701248..594c06cd75 100644--- a/docs/mint.json+++ b/docs/mint.json@@ -247,68 +247,88 @@{"group": "Authentication Methods","pages": [- "documentation/platform/auth-methods/email-password",- "documentation/platform/token",- "documentation/platform/identities/token-auth",- "documentation/platform/identities/universal-auth",- "documentation/platform/identities/kubernetes-auth",- "documentation/platform/identities/gcp-auth",- "documentation/platform/identities/azure-auth",- "documentation/platform/identities/aws-auth",- "documentation/platform/identities/jwt-auth",{- "group": "OIDC Auth",+ "group": "User Authentication","pages": [- "documentation/platform/identities/oidc-auth/general",- "documentation/platform/identities/oidc-auth/github",- "documentation/platform/identities/oidc-auth/circleci",- "documentation/platform/identities/oidc-auth/gitlab",- "documentation/platform/identities/oidc-auth/terraform-cloud"- ]- },- "documentation/platform/mfa",- {- "group": "SSO",- "pages": [- "documentation/platform/sso/overview",- "documentation/platform/sso/google",- "documentation/platform/sso/github",- "documentation/platform/sso/gitlab",- "documentation/platform/sso/okta",- "documentation/platform/sso/azure",- "documentation/platform/sso/jumpcloud",- "documentation/platform/sso/keycloak-saml",- "documentation/platform/sso/google-saml",- "documentation/platform/sso/auth0-saml",+ "documentation/platform/auth-methods/email-password",{- "group": "Keycloak OIDC",+ "group": "SSO","pages": [- "documentation/platform/sso/keycloak-oidc/overview",- "documentation/platform/sso/keycloak-oidc/group-membership-mapping"+ "documentation/platform/sso/overview",+ "documentation/platform/sso/google",+ "documentation/platform/sso/github",+ "documentation/platform/sso/gitlab",+ "documentation/platform/sso/okta",+ "documentation/platform/sso/azure",+ "documentation/platform/sso/jumpcloud",+ "documentation/platform/sso/keycloak-saml",+ "documentation/platform/sso/google-saml",+ "documentation/platform/sso/auth0-saml",+ {+ "group": "Keycloak OIDC",+ "pages": [+ "documentation/platform/sso/keycloak-oidc/overview",+ "documentation/platform/sso/keycloak-oidc/group-membership-mapping"+ ]+ },+ "documentation/platform/sso/auth0-oidc",+ "documentation/platform/sso/general-oidc"]},- "documentation/platform/sso/auth0-oidc",- "documentation/platform/sso/general-oidc"- ]- },- {- "group": "LDAP",- "pages": [- "documentation/platform/ldap/overview",- "documentation/platform/ldap/jumpcloud",- "documentation/platform/ldap/general"+ {+ "group": "LDAP",+ "pages": [+ "documentation/platform/ldap/overview",+ "documentation/platform/ldap/jumpcloud",+ "documentation/platform/ldap/general"+ ]+ },+ {+ "group": "SCIM",+ "pages": [+ "documentation/platform/scim/overview",+ "documentation/platform/scim/okta",+ "documentation/platform/scim/azure",+ "documentation/platform/scim/jumpcloud",+ "documentation/platform/scim/group-mappings"+ ]+ }]},+{- "group": "SCIM",+ "group": "Machine Identities","pages": [- "documentation/platform/scim/overview",- "documentation/platform/scim/okta",- "documentation/platform/scim/azure",- "documentation/platform/scim/jumpcloud",- "documentation/platform/scim/group-mappings"+ "documentation/platform/identities/token-auth",+ "documentation/platform/identities/universal-auth",+ "documentation/platform/identities/kubernetes-auth",+ "documentation/platform/identities/gcp-auth",+ "documentation/platform/identities/azure-auth",+ "documentation/platform/identities/aws-auth",+ "documentation/platform/identities/jwt-auth",++ {+ "group": "OIDC Auth",+ "pages": [+ "documentation/platform/identities/oidc-auth/general",+ "documentation/platform/identities/oidc-auth/github",+ "documentation/platform/identities/oidc-auth/circleci",+ "documentation/platform/identities/oidc-auth/gitlab",+ "documentation/platform/identities/oidc-auth/terraform-cloud"+ ]+ },++ {+ "group": "LDAP Auth",+ "pages": [+ "documentation/platform/identities/ldap-auth/general",+ "documentation/platform/identities/ldap-auth/jumpcloud"+ ]+ }]},+ "documentation/platform/token",+ "documentation/platform/mfa","documentation/platform/github-org-sync"]},@@ -715,6 +735,16 @@"api-reference/endpoints/jwt-auth/revoke"]},+ {+ "group": "LDAP Auth",+ "pages": [+ "api-reference/endpoints/ldap-auth/login",+ "api-reference/endpoints/ldap-auth/attach",+ "api-reference/endpoints/ldap-auth/retrieve",+ "api-reference/endpoints/ldap-auth/update",+ "api-reference/endpoints/ldap-auth/revoke"+ ]+ },{"group": "Groups","pages": [