Search Ldap Identity Source
Searches one or all configured LDAP identity sources for users and groups matching
search_param, typically as a precursor to POST /iam/role-bindings - use the
distinguished_name or principal_name from a result as the entity_name when
granting a role. The match is case-insensitive in most LDAP server configurations.
Restrict the search to this LDAP identity source. If omitted, all configured sources are searched.
Text to search for, matched as a prefix (an implicit wildcard * is appended). Must
be at least 3 characters; shorter values are rejected to avoid overly broad LDAP queries.
Offset pagination parameter used to exclude from a response the first N items of a resource collection. Combine the offset and the page_size options to request a particular set or page of items.
Number of records to be returned in the API request from the provided offset
True, if the list of records returned need to be sorted in ascending order, false otherwise.
The parameter name on which to sort the list of records. Only top-level parameters in the returned list of records will be supported. If not provided, system will define the parameter by which results are sorted.
The search completed successfully; results may be empty if nothing matched.
{
"offset": 0,
"number_of_results": 1,
"total_result_count": 1,
"total_pages": 1,
"sort_ascending": true,
"sort_by": "common_name",
"results": [
{
"common_name": "sspuser1",
"distinguished_name": "cn=sspuser1,ou=Users,dc=corp,dc=example,dc=com",
"principal_name": "[email protected]",
"user_type": "REMOTE_USER"
}
]
}
Bad Request
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
4XX and 5XX type errors with appropriate message
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -H 'Authorization: <value>' https://{api_host}/https://{api_host}:{port}/lh-appliance/iam/ldap-identity-sources/search?search_param=v