Hello all. Has anyone had experience in setting up a JSS with a partial hostname, (server.name) with DHCP providing the search domain, so that a client acquiring a DHCP address has company.com in its search domain and requests for server.name correctly complete to server.name.company.com?
I find that 10.11.5 respects this configuration for everything except DEP. I have more testing to do, but it seems like the ManagedClient process on a newly set up mac refuses to trust an MDM server with a partial hostname, even though the OS should be 'completing' the hostname with the search domain set by DHCP.
Debug log from the ManagedClient process below;
Device Enrollment server connection returning error = 500 (The MDM server for your organization returned an unexpected status (500).)
Jun 28 18:39:39[268:0]:+MIG_CloudConfiguration mcxUsr_cloudconfiguration returned error: 500 (The MDM server for your organization returned an unexpected status (500).) domain = CPProfileManager
Relatedly, I had tested reconfiguring the JSS to use the FQDN and regenerating the Tomcat SSL cert. For good measure I also redid the DEP token exchange.
DEP does not like this change either but for a different reason. It seems that if your JSS URL doesn't match the hostname set in the JSS's internal CA that the device will not accept SSL trust chain up to the CA.
Jun 28 18:16:23[307:0]:* Device Enrollment server connection returning error = -218 (The server certificate chain for your organization’s MDM server was not properly set up.)
Jun 28 18:16:232267:0]:+MIG_CloudConfiguration mcxUsr_cloudconfiguration returned error: -218 (The server certificate chain for your organization’s MDM server was not properly set up.) domain = CPProfileManager
It looks like even though you change the JSS URL and regenerate the Tomcat SSL cert, this does not create a new public key. Inspecting the public key both before and after shows the same 'shortened' hostname I used originally. I had seen that before in another installation but saw no problems because we were enrolling clients with a quickadd package. I'm going to try just recreating a new DB and setting the URL up properly from the start to see if there's a change, but thought I'd write in this morning to see if anyone had gone down the same path already.