Skip to content

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

feat(docs): add LDAP authentication method to Python SDK documentation

Victor Santos72bfd1fb0528
diff --git a/docs/sdks/languages/python.mdx b/docs/sdks/languages/python.mdx
index a545a38942..da0a195b25 100644
--- a/docs/sdks/languages/python.mdx
+++ b/docs/sdks/languages/python.mdx
@@ -109,6 +109,23 @@ response = client.auth.oidc_auth.login(
This authentication method is useful when integrating with OIDC-compliant identity providers like Okta, Auth0, or any service that issues OIDC tokens.
+#### LDAP Auth
+
+```python
+response = client.auth.ldap_auth.login(
+ identity_id="<machine-identity-id>",
+ username="<ldap-username>",
+ password="<ldap-password>"
+)
+```
+
+**Parameters:**
+- `identity_id` (str): The ID of the LDAP identity configuration in Infisical.
+- `username` (str): Your LDAP username.
+- `password` (str): Your LDAP password.
+
+This authentication method is used for machine identities configured with LDAP-based authentication, enabling integration with corporate directory services like Active Directory.
+
#### Token Auth
```python