Unknown macro: {next_previous_link3}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview

DescriptionConfigure LDAP on iOS devices.
Resource Path/ldap
URL/ios/operation/ldap
HTTP MethodPOST
Request/Response Formatapplication/json

Sample request

{
  "operation": {
    "accountDescription": "This is an LDAP account.",
    "accountHostName": "192.202.185.90",
    "accountUseSSL": true,
    "accountUsername": "LDAPUser",
    "accountPassword": "$ldapuser1234",
    "ldapSearchSettings": [
      {
        "searchSettingDescription": "Search setting description1.",
        "searchSettingSearchBase": "ou=people1,o=example1",
        "searchSettingScope": "LDAPSearchSettingScopeBase"
      },
      {
        "searchSettingDescription": "Search setting description2.",
        "searchSettingSearchBase": "ou=people2,o=example2",
        "searchSettingScope": "LDAPSearchSettingScopeSubtree"
      }
    ]
  },
  "deviceIDs": [
    "2be702beaaf4ad34fc9e7f8da2b6b808c453fa72b", 
    "2ec33430ad456713c633de75b2219376bac45de56"
  ]
}

For information on the property value definitions, see Resource Definition to Configure LDAP on iOS Devices.

cURL command

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -d @'<JSON_PAYLOAD>' -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/ios/operation/ldap
  • For more information on how to generate the EMM API token, see Generating the EMM API Token.
  • Define the path to the JSON file, which lists the devices that this operation is applied on, as the  <JSON_PAYLOAD>  value.
  • By default, <EMM_HOST> is localhost. However, if you are using a public IP, the respective IP address or domain needs to be specified.
  • By default, <EMM_HTTPS_PORT> has been set to 9443. However, if the port offset has been incremented by n, the default port value needs to be incremented by n.

 

  • No labels