• cloud,  iPhone,  Mac OS X,  Mac OS X Server,  Mac Security,  Mass Deployment,  sites,  Social Networking

    Link Baiting 101

    I almost called this article “Aliens Can Listen To Calls on Your iPhone” or “How To Hack Into Every iPhone Ever (Even When They’re Powered Off)”. But then I thought that maybe it would be a bit too much. I’ve been a little melodramatic at times, but that’s when I was younger and needed the rupees. But TechTarget isn’t young (although I don’t know if they need the rupees). I’d like to point out two recent articles of theirs: Zaphod wrote this chapter just to mess with you: Apple iOS Security Attacks A Matter Of When, Not If, IT Pros Say The Salmon of Doubt would be a much better title…

  • Mac OS X,  Mac OS X Server,  Mac Security,  Mass Deployment

    Upgrading Open Directory From Snow Leopard Server to Lion Server

    I don’t believe in upgrading major operating systems for servers in place. There, I said it. If I’m doing an upgrade from Snow Leopard to Lion, I’m about 99.9% of the time going to do so with a clean install. Before I do so, I’m going to export all the data from my old server and when I’m done with the fresh, clean, loving installation, I’m going to import that data back into my server. Actually, before I import the data, I’m going to install all of the point releases, application updates and security patches. That’s my process for production servers. Open Directory isn’t very different. I Archive and Restore…

  • iPhone,  Mac OS X,  Mac OS X Server,  Mass Deployment

    Backing Up and Reindexing The Profile Manager Database in Lion Server

    A common task when scaling databases is to reindex tables within the database. This process makes lookups faster and databases run butter. Reindexing becomes a pretty easy step before or after backing up the database as a general housekeeping step. To backup the database, you’ll use the pg_dump command, defining the user with -U and then the database with -d. In the case of Profile Manager, the database is device_management. Given that data is distributed across a lot of tables in the device_management database, the below script will backup the device_management database and then reindex each of the tables. If you follow previous articles to enable the Postgres user, you…

  • Mac OS X,  Mac OS X Server,  Mac Security,  Mass Deployment,  Network Infrastructure

    Preflighting slapconfig

    Mac OS X Server uses the slapconfig command to promote Open Directory Masters and Replicas. In Lion, there is less and less dependency on slapconfig as not all of the aspects of an Open Directory environment are known throughout the system when performing LDAP operations through the command line (e.g. using -createldapmasterandadmin or -create. For example, if you use the tried and true -destroyldapserver option, the Server.app will no longer be able to promote a new Master and you’ll need to use Server Admin to create and then destroy that Master again in order for Server.app to be OK with your configuration changes. But there are things we’ll still want…

  • Mac OS X,  Mac OS X Server,  Mac Security,  Mass Deployment

    Removing Apps from Profile Manager Using Postgres

    There aren’t any options in Lion Server’s Profile Manager to remove applications. There are a number of environments where this can be annoying. For example, if you are upgrading or maybe just accidentally upload an app that you don’t want people to see for the rest of the existence of the Profile Manager server. To see which applications have been installed and which have each id: psql -U krypted -d device_management -c "select * from public.ios_applications limit 1000 offset 0;" The above command is a standard psql command, as shown in a previous article I worked on in a previous post. But this time I’m injecting the SQL query into…

  • Mac OS X,  Mass Deployment,  Microsoft Exchange Server,  Windows Server

    How Exchange's Autodiscover Works With Mail.app

    Autodiscover automatically configures profile settings for Exchange clients. These clients include Microsoft Outlook 2007 or Outlook 2010, Outlook for Mac, Mail.app in Mac OS X, iPhone, iPad and ActiveSync enabled phones. Autodiscover is often made out to be complicated. There’s an Autodiscover service that gets installed when a Client Access Server (CAS) role is setup for Exchange 2010 in the form of a default virtual directory named Autodiscover for the default Web site in Internet Information Services (IIS). You then forward an autodiscover service locater record in DNS in the form of _autodiscover._tcp. The virtual directory handles Autodiscover requests. But what about other vendors, and even for Exchange, how do…

  • Mac OS X,  Mass Deployment

    Enable the Debug Menu in the Mac App Store

    The Mac App Store has a debug menu. To enable the debug menu, enable the ShowDebugMenu key in com.apple.appstore. To do so: defaults write com.apple.appstore ShowDebugMenu -boolean YES Once enabled, there are a number of options to show the folder where apps download, enable logging, clear cookies and reset the Mac App Store. To turn the Mac App Store debug menu back off: defaults write com.apple.appstore ShowDebugMenu -boolean NO

  • iPhone,  Mac OS X Server,  Mac Security,  Mass Deployment,  SQL

    Working with Postgres from the Command Line in Lion Server

    Mac OS X Server 10.7, Lion Server, comes with a few substantial back-end changes. One of these is the move from SQLite3 to PostgreSQL for many of the back-end databases, including Wiki and Podcast Producer (collab), Webmail (roundcubemail), iCal Server and Address Book Server (caldav) and as the back-end to the newest service in Lion Server, Profile Manager (device_management). As such, it’s now important to be able to use PostgreSQL the way we once used SQLite3, when trying to augment the data that these databases contains, as there currently aren’t a lot of options for editing this data (aside from manually of course). Postgres has a number of commands that…

  • Mac OS X,  Mac Security,  Mass Deployment

    Resetting Flash's Cookies

    Flash stores cookies in the ~/Library/Preferences/Macromedia/Flash Player/#SharedObjects directory. These can be reset by trashing the #SharedObjects folder, which is used to store cookies for Flash, no matter which browser you are using. If doing this en masse (e.g. via Apple Remote Desktop or a patch management solution), then you can do so with the following command, which removes that folder for all users on the system (unless you’re using network homes or have customized the home folder location): rm -fr /Users/*/Library/Preferences/Macromedia/Flash Player/#SharedObjects

  • Business,  Mac OS X,  Mac OS X Server,  Mac Security,  Mass Deployment,  public speaking,  Time Machine

    My New Book on Time Machine Now Available

    I have published a new book on Time Machine (Time Capsule, deployment/Managed Prefs and Time Machine Server as well). I wrote it months and months ago and it finally ended up getting posted (publishing is a weird world like that sometimes). It is available for Kindle (Amazon) for now and should be up on the iBooks store as soon as the good people from iTunes Connect get back from their holiday break. To quote the Amazon excerpt: Time Machine is Apple’s built-in backup solution that comes bundled with Mac OS X. In this book, we will explore Time Machine, looking at how to enable Time Machine, configure what to back…