This guide provides step-by-step instructions for configuring the Service Discovery URL for Apple Account-Driven User Enrollment when the organization prefers to use a domain that is different from the verified domain used in ABM. The HTTP 302 redirect method is used to ensure proper redirection and configuration.
Since the domains differ, an HTTP 302 redirect is required to configure the Service Discovery URL correctly.
Set up an HTTP 302 Redirect:
Example Configuration: If using a web server like Apache or Nginx, configure the redirect in the server settings. For example:
Apache: Redirect 302 /.well-known/com.apple.remotemanagement https://www.domain2.com/.well-known/com.apple.remotemanagement
Nginx: location /.well-known/com.apple.remotemanagement {
return 302 https://www.domain2.com/.well-known/com.apple.remotemanagement;
}
Use curl to Verify the Setup: Run the following command to test the HTTP redirect and service discovery configuration:
curl -i -L https://{domain}/.well-known/com.apple.remotemanagement
Replace {domain} with the verified domain used in ABM (e.g., domain1.com)
curl -i -L https://domain1.com/.well-known/com.apple.remotemanagement HTTP/2 302 HTTP/2 200 { "Servers": [ { "Version": "mdm-byod", "BaseURL": "https://mdm.manageengine.in/mdm/client/v1/enroll?templateToken=1234&encapiKey=1234" } ] } |
Expected Output: The command should first return a 302 redirect to the organization's preferred domain. The final response should include the contents of ServiceDiscoveryData.json with a 200 status code and the correct headers.
Complete the Enrollment: Once the configuration is verified, add the verified domain (e.g., domain1.com) in Apple User Enrollment settings. Save the configuration to finalize the setup. For further guidance on MDM enrollment, refer our Apple User Enrollment guide.