Add LDAP Integration Settings
POST/api/v32.07/settings/ldap
x-prisma-cloud-target-env: {"permission":"authConfiguration"}
Configures the LDAP integration.
For more information, see Active Directory and OpenLDAP
cURL Request
Refer to the following example cURL command that enables the LDAP integration and specifies the parameters required to integrate with an Active Directory service.
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X POST \
-d \
'{
"enabled": true,
"url": "ldap://ldapserver.example.com:3268",
"searchBase": "dc=example,dc=com",
"accountUpn": "example_service@example.com",
"accountPassword": {
"plain": "pass!-W0RD"
},
"type": "activedirectory",
"userSearchIdentifier": "userprincipalname"
}' \
"https://<CONSOLE>/api/v<VERSION>/settings/ldap"
Request
- application/json
Body
accountPassword object
Secret Stores the plain and encrypted version of a value. The plain version is not stored in a database
Specifies an encrypted value of the secret.
Specifies the plain text value of the secret.
AccountUpn is the user principle name used to connect to the active directory server.
CaCert is cert in PEM format (optional, if not specified, skip_verify flag will be used).
Enabled indicates whether LDAP is enabled.
GroupSearchBase is the LDAP search pattern for groups.
SearchBase is the LDAP search pattern.
Type specifies the LDAP server type (AD or OpenLDAP).
URL is the ldap server url.
UserSearchBase is the LDAP search pattern for users.
UserSearchIdentifier is the user identifier to use for querying open ldap (e.g., cn -> cn=user).
Responses
- 200
- default
OK