pm

Using OS X Lion Server as a Home Server (Part 8 – Profile Manager and Apple Macs)

Download the Using Apple OS X Lion Server at Home eBook Now

If you’ve been enjoying our Using Apple OS X Lion Server as a Home Server series, then make sure you pick up a copy of the accompanying eBook. You’ll find additional chapters and information on using OS X Lion Server to power your digital home that won’t be available here on the site, and with all of our walkthroughs available in one convenient document (ePub or PDF), it’s far easier to install and configure your server without having to click backward and forwards to the website.

Buy Using OS X Lion Server at Home – £14.99

 

Right, it’s time to have some fun! In the last seven parts of our deep dive into Apple’s OS X Lion Server we’ve talked through the rationale for its potential role as a home server, features, hardware options, installation, the server appstorage and networking setup and then finally, configuration of users, network accounts and user groups. I hope you’re enjoying the journey – discovering a new platform can be fraught with pitfalls, but so far (a odd bug aside) we’re in decent shape, and we’re ready to start using some of Lion Server’s features.

In this part of the series, we’re going to walk through Apple’s Profile Manager – a powerful configuration tool that allows remote configuration of a vast array of client features and settings. I’m actually splitting this part of the series into two sections – today, we’re focused on using Profile Manager to configure and manage standard Mac clients – desktop machines like the iMac, MacBook Pros, Mac Minis and MacBook Airs. We’ll walk through how to register your Apple computers with Profile Manager and how those machines (and indeed, the user accounts running on them) can be configured to provide a personalised, tailored experience for your users. Need to rock some parental controls for the kids? On all of the Macs in the house? At once? Profile Manager is your friend.

Then, in Part 9 we’ll look in detail at how Profile Manager can also work with iOS device – that’s right, iPads, iPhone and iPod Touches are all welcome in the world in Profile Manager. If you want to set a consistent security profile for those mobile devices (say, ensuring every device uses a passcode), then you can do so in Profile Manager. If a device goes missing, how about a remote lock, or even a remote wipe of the device to ensure your personal information is protected? Yep, Profile Manager is the guy.

Over the two parts, there’s going to be a lot to cover and I’ll try to combine a detailed look at the options with some examples of real world, practical application for the various setting in a home context. But, as you know, there’s no substitute for diving in and taking a look for yourself!

The Purpose of Profile Manager

Before we dig into the detail, let’s take a step back. Why does a tool like Profile Manager exist? It all comes down to business. Whether it’s via a tool like Group Policy Editor in Windows, or Profile Manager in Apple’s OS X, enterprise IT administrators need simple ways to manage the hundreds, thousands or tens of thousands of computers in their organisations. A centralised configuration tool allows administrators to create a consistent profile (or policy) that all computers, or a subset of computers use. Changes to that profile can be made once, and pushed out to one, more or all of those computers automatically over the network – far easier than walking around to 10,000 computers to change the screen saver setting, right? It also allows them to prevent access to the parts of the operating system that they don’t want you to access – locked USB ports? Internet browser not working? Can’t install your favourite “stuff on my cat” screensaver? Yep, you have your friendly IT admin, a centralised profile manager tool and some mis-guided aspiration for “efficiency” to thank.

But hey, it’s more fun if you’re the admin, right? Just imagine the power, mwaa-haa-haa! In all seriousness, though, a tool like Profile Manager can be really useful at home. It may only be required to configure 3, 4, 5 devices (maybe more if your a large family or you just keep buying stuff) but when it comes to simple and efficient configuration and management of things like security settings, networking setup, email access, parental controls and more, there’s nothing like it – and indeed, unless you’ve previously been running a full-blown version of Windows Server (Windows Home Server does not have access to Group Policy Editor) or OS X Server, you’ve most probably never had access to such a tool.

So, without further ado, let’s get it fired up.

1. Set Up Profile Manager and the Apple Push Notification Service

Profile Manager is a web application, and before we can access the tool, we have a little administration to take care of. In Server app, click on the Profile Manager entry in the left hand pane to view the configuration options. Most notably, we need to apply for (yet another) certificate to utilise Apple’s Push Notification Service. This external service (hosted by Apple) monitors changes you make to device and user profiles in Profile Manager and notifies those devices of updates – profile updates can then be issued over the air to those devices by your server – very cool.

So, click Configure and you’ll be guided through the setup of Profile Manager. If you’ve not yet setup the Open Directory service (see the last part of the series for more on that). You’ll also need to setup an SSL certificate if you haven’t already – self-signed certificates can be used with profile manager, but will require you installing a “trust profile” as an additional step on your clients to work correctly. If you have a certificate on board from an authorised certificate authority, you’re good to go.

Setting up the Apple Push Notification Service is a simple matter of entering your Apple ID and password – the server then handles the certificate acquisition and installation in the background. Let the gears grind for a short while, and you should be fine to proceed.

As an extra layer of security, in the Profile Manager configuration panel, you’ll also see an option to code-sign the profiles generated by Profile Manager. This allows devices to verify that the profiles haven’t been modified since issuing. To switch on, check the box named Sign your configuration profiles, click Edit… and select your certificate.

In Default Configuration Profile, you’ll see a profile called Settings for Everyone – this is a universal profile that covers all of your Devices and Users (you still have granular control on what settings go to which user and device, so it’s fine to use). Depending on what server features you have switched on, you’ll be able to include (or exclude) specific configuration settings pertaining to those features in Profile Manager.

2. Open Profile Manager

Once you’re ready to proceed, hit the Open Profile Manager link at the bottom of the panel and your browser should open with a login screen. Drop in your Administrator username and password to view the tool. Top tip, if you have remote access configured, you can use Profile Manager remotely using your server’s external URL – just look for the Profile Manager link on the default webpage. (In fact, I’m writing this very article on a train accessing Profile Manager on my Mac Server via the on board Wi-Fi – who said modern life was rubbish, eh?)

screen capture 32 300x261 Using OS X Lion Server as a Home Server (Part 8   Profile Manager and Apple Macs)

Once you’re through authentication, the Profile Manager Tool lies in wait.

screen capture 42 300x155 Using OS X Lion Server as a Home Server (Part 8   Profile Manager and Apple Macs)

Profile Manager uses a simple three panel interface, with a top menu bar (which includes a universal search box and a small command panel accessible by clicking the logged in user name at the top right). From left to right, the main interface comprises a Library panel, for navigating between Devices, Device Groups, Users and Groups of users, an Activity Panel below used to navigate between Active Tasks and a log of Completed Tasks), a middle panel which is used to navigate between individual users, groups and devices (depending on the option selected in  the far left panel) and finally a large panel on the right which will display information on those users, groups and devices.

Before proceeding with the next step, have a click through the menus to familiarise yourself with the menus.

3. Enroll Your Computers

If we’re going to push settings to our Macs around the home, we’ll need to ensure that Profile Manager knows about them. To do this, we use Enrollment. Note that if you want to work on your settings before enrolling your devices, you can simply go to Devices, click the plus button at the bottom of the middle panel and select Add Placeholder – this will create a placeholder device that can be configured with profile settings. You’ll need to enroll the computer before you can issue the profile, though.

Important: Before proceeding with enrollment, make sure you have the following ports forwarded to your server via your router – Port 1640 and Port 2195. Without these forwarded, you’ll receive an “unexpected error” when you try to enroll a device other than the server itself. A little undocumented requirement there, which wasted a few hours of my life. So, no need to waste yours!

2011 09 07 01.46.18 pm 300x45 Using OS X Lion Server as a Home Server (Part 8   Profile Manager and Apple Macs)


Enjoyed this post? Share it.

If you enjoyed reading this post, then why not share it with your friends and followers?

About Terry Walsh

Terry Walsh is the founding editor and owner of We Got Served. Since February 2007, the site has provided detailed coverage and analysis of the emerging home server category, and has subsequently grown into a trusted outlet for digital home news and reviews.

Sign Up for WGS Daily News

If you don't want to miss out on the latest news from We Got Served, why not subscribe to our daily digest? You'll get the day's headlines and a short summary of each news item delivered straight to your inbox each morning.

, , , , , , , , , , , , , ,

  • plg

    have you managed to get the mobile accounts profile working with profile manager? I always get a "task failed" when it tries to update the devices.

    • http://www.wegotserved.com Terry Walsh

      Yes, I have – but I found that if the mobile accounts have already been created, any subsequent mobility configuration that still includes a "create mobile account" action will fail.

  • Mark Dallimore

    I'm getting a task failed when I try to enrol devices……….any veiw on that?

    Thanks,

    Mark

  • Terry Walsh

    What’s the full error?

    Did you forward the ports mentioned?

    • Mark

      Yep ports are forwarded, I get the following "The profile is either missing some required information, or contains information in an invalid format."

      Cant seem to figure a work around?

  • Craig Givant

    Great stuff as usual Terry! My experience is parallel with the series and I can't wait for the next installment. I have no problem waiting as long as it takes because having a walk-through as beautiful as those you provide make the process "cake". Thanks again!

    • Mark

      Couldn't agree more Craig, I think Terry is doing an awesome job with this walk through.

      Mark

  • Mark

    Such a nice feature but can't get past this certification issue…….seems to be an ongoing problem……..

    • http://www.wegotserved.com Terry Walsh

      Hi Mark

      Try running "tail -F /var/log/system.log" in a Terminal window, then recreate the error – you should see some more detailed error information pop up in the terminal window which may help you troubleshoot.

      Terry

      • Mark Dallimo

        Seems to be a root issue

        Sep 8 12:54:29 xxxxxxxxxxx ProfileManager[366]: Could not retrieve root certificate from open directory server.

  • Antonio

    Thanks for such a great article on Lion Server. This is by far the best piece of information I have found on the subject.

    • http://www.wegotserved.com Terry Walsh

      Thanks Antonio!

  • John

    Hi Terry, amazing article!

    Hoping you’re going to go so far as to show how you can access your media and files remotely (via browser) like you can with WHS….pretty please ;)

    John

    • http://www.wegotserved.com Terry Walsh

      Hi John

      Yes, that's the plan, but it'll take a little investigation – I'm covering the core services first, then we'll dip into remote access, media sharing streaming and so on.

      Terry

  • Simon

    Hi Terry, thanks for this series. I have a problem with my email since running Server. I can receive but no longer send emails through my ISP (I can still send .me mails). I get a very quickly flashed message when I try to send (too quick to read) and then I cannot close the message I am trying to send. I have to exit Mail, and when I restart the app, the mail message I failed to send has moved to Drafts, from where I have to delete it. I have the email configuration on Server switched off, by the way. Thanks for your help. Simon

    • http://www.wegotserved.com Terry Walsh

      Are you using the same domain for your Mac server as you use for your ISP mail? That may cause some setup problems. If there's an issue with the account setup in Mail, you should see an exclamation mark next to your inbox – double click and you should be able to see the error.

      • Simon

        Hi Terry. No, I have email on the server switched off, and there's no exclamation mark by my inbox. I received mail ok from my ISP, but can't send it. I'm also running .me mail and have no problems sending that. Hope you can help as my business is suffering….. Thanks. Simon

  • Mark

    Hi Terry,

    Will you also be doing virtual hosts and how to run two or more websites from the lion server?
    Thanks
    Mark

    • http://www.wegotserved.com Terry Walsh

      Hi Mark

      Not at this point – there's still a lot to cover on the basics before heading into more advanced topics.

      Terry

  • Dunstan

    Superb walk through which I posted a link to on the Mac Rumors forum:
    http://forums.macrumors.com/showthread.php?t=1226

    I’m really looking forward to having a go at this myself.

    One request for the ‘remote access’ section. It would be great to cover the built in VPN service such that users can log into a VPN remotely and send all traffic via it, to ‘browse out’ – very useful when you are faced with an internet connection (hotspots, hotels etc) that may be not be secure.

    Thanks again – excellent series.

    • http://www.wegotserved.com Terry Walsh

      Hi Dunstan

      Thanks very much for the link – very kind. Yes, Remote Access will definitely include the VPN service, as it's the primary built-in access method for file sharing.

      Terry

  • Matt

    Hi Terry, really enjoying this series.
    I'm interested in getting my first server and also am keen to have a Mac in the house.
    But I need to know how it works with PC's as all of my Clients would be PC's (initially at leas).

    Will you cover this?

    • http://www.wegotserved.com Terry Walsh

      Hi Matt

      With regard to PC support, you'll certainly be able to easily share and stream files hosted on the Mac Server to your PCs, but there's no backup support (Time Machine), Profile Manager support and user account support, all of which are Mac only.

      My advice, if you're a predominately Windows based home at this point is to go for Windows Home Server as the backbone, and then over time, if you end up swapping PCs for Macs, then there'll be a tipping point where a Mac Server makes more sense.

      Going forward, if Windows 8 allows PC backup to network devices through History Vault, and the feature itself is decent (eg, image based, incremental backup and restore) then I may revise this advice – we should find out more this week.

      Terry

      • Matt

        Thanks Terry,

        Really impressed by the way you monitor and reply (in depth) to so many of the comments.
        Thank you.

        I only came across 'We Got Served' a few weeks ago, but I'm a regular reader now and I can tell that this site is going to be a helpful resource as I go about choosing (and using!) my setup.

        Thanks for all your hard work, really appreciated.

        • http://www.wegotserved.com Terry Walsh

          Hi MattReally appreciate the feedback – thanks!Terry

  • http://www.wegotserved.com Terry Walsh

    Hi John

    The domain should work (in terms of pointing to your home network if it's been previously set up with WHS), but I'm not sure how you'd manage the certificates… have a go and let us know how you get on.

    Terry

  • Neil

    Hi Terry, this is a very help walk through thank you.
    I've made my iMac i7 into a server and now i'm attempting to get my mac book's etc. setup as clients. I've followed every step I believe, registered a domain with go daddy and got SSL cert etc. so far so good. I didn't do the port forwarding because I'm using Time Capsule and I checked in the airport utility and everything seems to have registered. The users and groups have been setup and I can access profile manager on the Server, but the trouble i have is when I come to login to my server via web browser on my client to Enrol I get "Safari can't connect to the server". I am wondering if I setup the domain correctly on Go Daddy, I pointed the DNS manager to my IP address. I didn't register for Hosting at Go Daddy, is this required?

    Any ideas?

    Neil

  • http://twitter.com/grahamcolgate Graham Colgate

    Hi,

    This is really great work!

    I had this all fine until yesterday. Had a bunch of devices Enrolled and last night Profile manager stopped working. Its running in the server app and looks to be OK, but I am not able to login to the webpage.  At the moment I am getting page not found. My router etc is setup correctly, I have double (and was working before anyhow).
    Hope someone can help with this. I am about to do a full system rebuild to get this to work…

    Thanks
    GC

  • bw

    quick question: i’ve followed all of your instructions up to this point, and setup an SSL certificate through GoDaddy, which is verified on the server.  but when I enroll my devices, the profile shows up as “unsigned”… not “verified” as in your screenshot.  any idea what i’m doing wrong?

    • http://www.wegotserved.com Terry Walsh

      Have you tried installing the trust profile on the device? See page 2.

  • http://www.facebook.com/profile.php?id=1127981995 Yvan Sandoz

    Terry,

    I would like first to thank you for all your help through the configuration of my Mac mini Server. 

    Everything looks exactly like you describe it up to the point of enrolling client computers. I do have the TrustProfile in place and verified, but I keep getting the following error message at the end of the enroll process with the ota_profile.mobileconfig file:

    “The profile “Remote Management (com.apple.config…………….com.mdm)” could not be installed due to an unexpected error.”

    What is you idea about this error?

    Sincerely,
    Yvan

  • Dunstan Cooke

    Terry, I’m getting the “unexpected error” message when I try and enroll both the server and an additional device. AFAIK I have forwarded the two TCP ports you set out. Any thoughts? Thank again for the excellent article, and for taking the time to troubleshoot everyone else’s projects!

  • Gerritjan Koekkoek

    Great walkthrough,
    But I run into problems when I want to open profile manager…
    I get:
    Service Temporarily Unavailable

    The server is temporarily unable to service your
    request due to maintenance downtime or capacity
    problems. Please try again later.

    Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8r DAV/2 Server at imacgerritjan.local Port 80I’ve looked around at posts, but can not find a solution or a hint what might cause this problem?I’ve tried to disable the certificates, enable them?The webserver itself seems to work; http://imacgerritjan.local gives me the welcome screen

    • http://www.wegotserved.com Terry Walsh

      Sounds like an Apache (web server issue) – not sure if the steps, but maybe restarting Apache may help. I take it you tried a reboot?

      • Gerritjan Koekkoek

        I’ve received very helpfull support from Apple by Phone. I will try to summarize the causes and the improvement but i’ve not yet managed the Profile manager to work…
        The root cause, according to apple, for my error message is that the Profile Manager services rely on DNS to execute correctly (might be true also for other more complicated services)
        The reason DNS was not working on my iMAC is that it used to be just a client, relying for DNS on my ISP. my Imac receives the IP configuration from DHCP services of a airport extreme, which just forwards DNS requests to DNS services at my ISP. When i configured the host name and followed the walktrough of Terry i chose, in contrast to Terry, not to make my server (and family domain) visible from the internet, so i skipped the part where Terry configures DNS at goDaddy to contain the servername (hostname) of the homeserver.
        Apple advised my to configure DNS on the homeserver by downloading the server tools (10.7.2) and use server admin to configure DNS.
        @aa10f5735c1b56bac9d168bf63b95ec7:disqus ; it will be very helpfull if you could add a little about the optimal DNS configuration of a homeserver, i was struggling with naming conventions
        and frequently the tool generated names by extending the domainname behind the hostname. according to apple the rootcause for this is that I did not start with a Fully Qualified Domainname (i chose koekkoekfamily.local). But after changing my hostname (also tricky) and trying to update my certificate a godaddy with the new hostname i managed to get DNS working.
        Apple advised me to test DNS with the terminal command
        dig @###.###.#.## imacgerritjan.koekkoekfamily.local where you see the ip address of the homeserver after the @61b3ab9876313c8e8cae939fd8f75c28:disqus  symbol (it will then ignore other possible running DNS services and should respond with the same ip address of the home server. note the fully qualified hostname.
        After all this i at least no longer get the error about ‘temporary unavailable’ but i might be in a even more problematic condition;
        I now get “Profile manager is not running” clearly a message from server because its a nicely grey formatted message from apple, and not from apache. In server.app the green dot of profile manager is showing the app thinks profile manager is RUNNING
        I think this is due to renaming hostname and domainname, in the logfile i see a lot of RUBY messages that do not look good…

  • Fredric Tirheden

    Hi, I’m running Lion Server 10.7.2 on a Mac Mini and I have a problem that the login screen does not open when I hit the Open Profile Manager link. The Safari window is blank. Any ideas?

  • Thomas Stebler

    Hi, great stuff, like your how to setup very much, after hours of very demanding setup experiences found your how to do extremely helpful and I consider to by your publication.

    Smal question I have for you: I opened both ports 1640 and 2195. Portscan shows only 1640 open, Port 2195 remains closed whatever I do (restart, new start, reconfiguring a.s.o.) Consequently I am running at the end of the enroll process in to a unexpected failure. Any idea?

    Founding out that Ports for Web Services (80 and 443) must be open as well to get the expected web page displayed. Maybe this help someone a little.

    Thanks for attention

    Thomas

  • Gustavo Nieves

    I have turned on Profile Manager on the Server app but when i go to access it on the web browser, it says it is off. Also when I go to the /mydevices page I get a “Not Found” error. This happens on the server computer, another network computer, and an iPhone on a 3G network. FWIW, file sharing (the only other service I’ve set up so far) works on the local network.

    Any ideas on what the issue could be?

  • Guest

    Can you PLEASE add your ebook to ITUNES… It would be a GREAT help to those like me to which gift cards are the next best thing since the dollars and CENTS.

    • http://www.wegotserved.com Terry Walsh

      Thanks for the feedback – Apple has a really convoluted acceptance process for iTunes (requiring, believe it or not, a US Tax Number (I’m not a US Citizen, BTW)) to get a supplier account. Will definitely try to sort this out though – watch this space. 

  • Edgard

    Hi Terry
    Thanks for this guide. But after changing the ports on router my DNS on Lion Server stopped and I can’t start it anymore. Any clues? Thanks

  • Trevor Stevens

    After I sign in to Profile manager (for the first time); Safari brings up “Safari can not connect…” 404 error.  I am using a Self Signed Cert, but that should not make a difference.  Thoughts? I am a very novice user with OS X and OS X Server.

  • Wdeertz

    I’ve purchased the book and find it very helpful. After some struggles I was able to obtain a ssl certificate and get it properly installed. Now when I go to profile manager and try to import my SSL certificate it asks for my public and private keys. I dragged my SSK certificate into the box but where do I get my public and private keys?

  • Gazzaroonii T.

    Hi Terry,  I have my trust profile installed using a self signed certificate.  When I try to enrol my server and download ota_profile.mobileconfig for mydevices and install I get this error:

        Profile installation failed.
        The certificate for this server is invalid. You might be     connecting to a server that is pretending to be 
        “gtiserver.local” which could put your confidential 
        information at risk.

    Any ideas what I have done wrong?