MDM OTA Enrollment - DNS Redirect?

dgreening
Valued Contributor II

Hello all,

We are trying set up a DNS redirect for our Casper enrollment page for mobile devices. We are having some trouble with the CNAME DNS entry. It won't take as the port number is specified in the URL.

Here is what we have currently: https://casper01.admin.mybps.org:8443/enroll
Here is what we want to redirect it to: https://mdm.mybps.org

Have any of you successfully set up a redirect? Any tips/tricks that you can share?

5 REPLIES 5

nicktong
New Contributor III

Cool. Could backup JSS/Tomcat/webapps/ROOT/WEB-INF/enroll/login.jsp and make a new login.jsp which contains only:

<META HTTP-EQUIV=REFRESH CONTENT="1; URL=https://mdm.mypbs.org">

That should do the trick but will break after JSS upgrades.

If I misunderstood and you wanted to do the redirect the other way around, it'd be very easy if using IIS by making a new virtual directory which redirects to https://casper01.admin.mybps.org:8443/enroll including the port number. Though, at that point you might as well just embed the enrollment form into a page on your webserver along the lines of:

<body>
<form name="login_form" method="post" action="https://JSS:8443/enroll">
<input type="text" name="username" placeholder="Username" value="">
<input type="password" name="password" placeholder="Password">
<input class="submit" type="submit" name="submit" value="Enroll">
</form>
</body>

Either way, you can drop the cname stuff.

rickgmac
Contributor

I have set it at a couple of sites.

Using mountain lion server. Create a website like https://enroll.mybps.org then put a permanent redirect to https://casper01.admin.mybps.org:8443/enroll
Then have a dns record pointing to the mac server for enroll.mybps.org.

Has worked a treat. In theory could be done on any box which can host a website with rules

dgreening
Valued Contributor II

rickgmac, I like your suggestion, as it won't break when I upgrade the JSS. I'll try it out today and report back. Thanks!

spowell01
Contributor

figured I would bring this one back from the dead since we would like to accomplish the same thing. We are going to be manually enrolling some mobile devices this evening and would like to have the shortest enrollment url possible, like x.kibsd.org. Currently we use https://jss.kibsd.org:8443/enroll

Frankly i'm not very good with the details of iis but I feel like it should be pretty simple. I tried creating a new virtual directory, but what would be the physical path used for the enrollment URL? The only physical path that im aware of is for the caspershare. Just looking for a few more details if anyone has accomplished the shortened url redirect for enrollment, thanks!

rickgmac
Contributor

@spowell01 Check out https://technet.microsoft.com/en-us/library/cc732969(v=ws.10).aspx
This will run through the process on windows

But you would essentially need to create a new website like https://enroll.kibsd.org with new dns entry. The configure the redirect to point to https://jss.kibsd.org:8443/enroll