Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Profile manager redirect issue

I'm setting up a new Mac Mini Server with OS 10.7.3. I've run through the Profile Manager configuration and it appears to be running. When I go to https://server.domain/mydevices I get the login screen, but when I try to login I receive the following redirect error.


The webpage at https://server.domain/auth?redirect=https://server.domain/devicemanagement/api/a uthentication/device_callback has resulted in too many redirects.


Any suggestions?

Mac mini, Mac OS X (10.7.3)

Posted on Feb 3, 2012 9:05 AM

Reply
12 replies

Feb 5, 2017 4:09 PM in response to type11

After much experimenting and reading through the Apple community and online, I have found a solution to my own version of this issue. If you look at the Website service, you may notice one of the default sites has a default redirect set up. Delete the redirect and your problem may be solved. It was for me.


For a fuller description of my own version of this issue, see: Profile Manager Browser Redirecting to Devices Page.


Good luck.

Jun 30, 2012 10:31 PM in response to type11

Seems to be a server hostname issue. Try this:

Open a Terminal window and issue the commands

scutil --get HostName

scutil --get ComputerName

scutil --get LocalHostName


What do these names say? Based on what you have in your post, they should be:

HostName = server.domain

ComputerName = server

LocalHostName = server


Let me know if this is the case and if not what else we can do to resolve this problem.

Jul 9, 2012 2:42 AM in response to abstert

Hi,

I just read you reply.I am having a similar problem.

I have no problems logging into Profile Manager/My Devices on the LAN but when someone wants to connect to Profile Manager and MyDevices from the Internet they see the the Profile M.'s title window "Admin" , then the re-direct happens and Safari says it can't connect to the server.

I checked the host names and I see HostName= server.domain and LocalHostName=server, but the Computer Name is different (=Mac Mini Server).

BTW, clients can connect to Wiki pages from the Internet with no problems.

All connections from the Internet use DDNS address from DynDNS to connect.


Can this problem be caused by an incompatibility of Safari 4.1.x ?

Or is this a SSL issue ?


Thank you very much for help in advance.

Regards,

Twistan

Jul 9, 2012 8:14 PM in response to Twistan

In your case Twistan, it sounds like it most definitely is a SSL issue. Your wiki page works fine because the SSL is setup correctly for that service. However, the profile manager so how or another has the incorrect information deep in the config files that is causing this issue.


The solution might be different for you, but for me, I issued the command:

scutil --set HostName "whatever.mydomain.is" #No quotes of course

scutil --set ComputerName "MacMiniServer"

scutil --set LocalHostName "MacMiniServer"


I then turned off Profile Manager, deleted the SSL certs, recreated the SSL certs, and restarted Profile Manager. Everything worked fine for me then.

Jul 9, 2012 9:57 PM in response to abstert

Hi abstert,

thank you very much for your response.

I can't take any risks today, because the server is running a few important tasks, but I will try tomorrow on a clone.

Did you mean to set the hostname to the private hostname, i.e. 'server.name.private' or to the public hostname 'name.dyndns.org' ?

Which host name must I use in the "Common Name" field when I create a self-signed certicate ? The public name 'name.dyndns.org' or the private name 'server.name.private' ?

Besides, do I have to switch on the Web Server in the Server App ? The Wikis work fine without the Apache web server.

Thanks again !

Twistan

Feb 11, 2013 7:11 AM in response to kb8wfh

Well, I meanwhile managed to get most services up and running, all in all quite a time consuming process though.

Did you set up your server with a public dynamic DNS hostname such as name.dyndns,org or as a private server ?

If I remember well I set up the server as a public server (which makes sense if you want to use Profile and Device Manager) and I re-created the Open Direcory database and the server SSL's as described in one of my recent posts:


https://discussions.apple.com/thread/4677054


If you follow these steps religiously you should be able to get all services up and running.


Of course, DNS should also be working properly.


I did not mention in that post that if applicable all server databases should be be backed-up (dumped) as described for example in an article by Jason Bosket (Sep 2011 on Sourcenetworks, sorry, I could not find the URL anymore).


Hope that helps to give you an idea.


Regards,

Twistan


NB. I am not an expert, just an experienced Mac user.

Feb 14, 2013 3:19 PM in response to Twistan

I finally solved this just a day ro so ago. Now my server crashed from something else and its being restored, but at least I think I know what the issue was.


I had my server name as server.servername.private and had one of those dynamic IP services point to it with an external domain name. I emailed a very helpful and friendly fellow on YouTube by the name of Todd Olthoff who has some great videos on OS X Server. He told me to consider changing my server name to my external domain name. I was worried about doing that because everything else was working and didn't want to mess it up. But I tried anyway and it worked like a charm. The only other thing I had to do was change the certificate my system used to the new one the server crated once I changed its name. Like I said, everything worked fine now, and no redirects to a server name that didn't work. Give that a try.

Feb 17, 2013 11:17 PM in response to kb8wfh

I can confirm that changing the name of the server to that of the external domain name will make profile manager work properly.


For example, if your external DDNS domain name is something like "mymacmini.dlinkddns.com" and your computer's fully qualified domain name is something like "JohnSmithsMac.local" this will not work. The fix is to rename your mac something like this to match your DDNS domain "JohnSmithsMac.mymacmini.dlinkddns.com". You then configure your router to forward the specified ports for Profile Manager to that server.


I hope this is the method you used as it has been working for me now for over a year. Let me know if you have any questions.


Thanks

Profile manager redirect issue

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.