curl --request POST \
--url https://us.infisical.com/api/v1/app-connections/ldap \
--header 'Content-Type: application/json' \
--data '
{
"method": "simple-bind",
"credentials": {
"provider": "active-directory",
"url": "<string>",
"dn": "<string>",
"password": "<string>",
"sslRejectUnauthorized": true,
"sslCertificate": "<string>"
},
"name": "<string>",
"description": "<string>",
"projectId": "<string>",
"isPlatformManagedCredentials": false,
"gatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"appConnection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"app": "ldap",
"method": "simple-bind",
"credentials": {
"provider": "active-directory",
"url": "<string>",
"dn": "<string>",
"sslRejectUnauthorized": true,
"sslCertificate": "<string>"
},
"description": "<string>",
"version": 1,
"isPlatformManagedCredentials": false,
"gatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"credentialsHash": "<string>",
"project": {
"name": "<string>",
"id": "<string>",
"type": "<string>",
"slug": "<string>"
}
}
}Create a LDAP Connection.
curl --request POST \
--url https://us.infisical.com/api/v1/app-connections/ldap \
--header 'Content-Type: application/json' \
--data '
{
"method": "simple-bind",
"credentials": {
"provider": "active-directory",
"url": "<string>",
"dn": "<string>",
"password": "<string>",
"sslRejectUnauthorized": true,
"sslCertificate": "<string>"
},
"name": "<string>",
"description": "<string>",
"projectId": "<string>",
"isPlatformManagedCredentials": false,
"gatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"appConnection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"app": "ldap",
"method": "simple-bind",
"credentials": {
"provider": "active-directory",
"url": "<string>",
"dn": "<string>",
"sslRejectUnauthorized": true,
"sslCertificate": "<string>"
},
"description": "<string>",
"version": 1,
"isPlatformManagedCredentials": false,
"gatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "<string>",
"credentialsHash": "<string>",
"project": {
"name": "<string>",
"id": "<string>",
"type": "<string>",
"slug": "<string>"
}
}
}The method used to authenticate with LDAP.
simple-bind The credentials used to connect with LDAP.
Show child attributes
The type of LDAP provider. Determines provider-specific behaviors.
active-directory The LDAP/LDAPS URL to connect to (e.g., 'ldap://domain-or-ip:389' or 'ldaps://domain-or-ip:636').
1The Distinguished Name (DN) or User Principal Name (UPN) of the principal to bind with (e.g., 'CN=John,CN=Users,DC=example,DC=com').
1The password to bind with for authentication.
1Whether or not to reject unauthorized SSL certificates (true/false) when using ldaps://. Set to false only in test environments.
The SSL certificate (PEM format) to use for secure connection when using ldaps:// with a self-signed certificate.
The name of the LDAP Connection to create. Must be slug-friendly.
1 - 64An optional description for the LDAP Connection.
256The ID of the project to create the LDAP Connection in.
Not supported for LDAP Connections.
true, false The Gateway ID to use for this connection.
Default Response
Show child attributes
ldap simple-bind Show child attributes
The type of LDAP provider. Determines provider-specific behaviors.
active-directory The LDAP/LDAPS URL to connect to (e.g., 'ldap://domain-or-ip:389' or 'ldaps://domain-or-ip:636').
1The Distinguished Name (DN) or User Principal Name (UPN) of the principal to bind with (e.g., 'CN=John,CN=Users,DC=example,DC=com').
1Whether or not to reject unauthorized SSL certificates (true/false) when using ldaps://. Set to false only in test environments.
The SSL certificate (PEM format) to use for secure connection when using ldaps:// with a self-signed certificate.
Was this page helpful?