hornet icon

hornet

Interact with hornet API

Actions452

LDAP Connection Settings → Service Dashboard Ldap Cplogin Post

AI-generated

Summary

Posts LDAP connection settings for a specific object (user, customer or partner) to the Hornet API, enabling or disabling the connection and optionally applying an LDAP filter.

Inputs

  • object_id (required) — The ID of the object whose LDAP connection settings are being updated. Sent as a query parameter named object_id (value: {{$value}}). Accepts a number, default 0.
  • APP-ID (required) — Application identifier issued by Hornet for authentication. Sent as a request header APP-ID (value: {{$value}}). Accepts a string, default empty.
  • enabled (required) — Whether the LDAP connection should be enabled for the object. Sent in the request body as enabled (value: {{$value}}). Accepts a boolean, default true.
  • filter — LDAP filter to apply when the connection is enabled. Sent in the request body as filter (value: {{$value}}). Accepts a string, default empty. The description notes it is required if enabled equals true.

Output shape

API response from the Hornet LDAP Connection Settings endpoint (structure defined by the OpenAPI spec). Typically returns the updated connection settings object.

The operation uses the baseURL https://cp.hornetsecurity.com/api/v0 with default headers Accept: application/json and Content-Type: application/json.

Examples

Example 1: Enable LDAP connection for a user with object ID 123, using APP‑ID 'myApp' and a filter '(objectClass=person)'.

Set object_id=123, APP‑ID='myApp', enabled=true, filter='(objectClass=person)'. Other request options can be left at defaults.

Links

Discussion