How To: Change the “Automatic Proxy Configuration” url in System Preferences via a Script

Standard

The “Automatic Proxy Configuration” url in System Preferences is used to point the clients to a PAC file to set the proxy server when on the Office LAN. Below are some scripts to manage this setting.

Continue reading

How To: Use fstab within a Casper Imaging workflow

Standard

For my future deployments, i’ve decided to partition my managed Macs HD’s with 33% for the OS (which i’ve kept as being called Macintosh HD) & the remaining 67% as User data (which i’ve labelled Users HD).

To do this i’ve been using fstab to mount the “Users HD” partition to /Users. Below is how i achieve this, hope it helps.

Continue reading

Authenticating 10.7 Macs To A RADIUS Server With Certificate Enabled PEAP Authentication

Standard

Subject’s a mouthful eh? Basically, I needed for my 10.7 Macs to authenticate to our RADIUS wireless network using PEAP authentication & the Mac’s Certficate from our domain.

Continue reading

Error: The package does not appear to be on the server (400). / line 1: syntax error

Standard

Recently we setup a 10.7 Mac Server in our DMZ & clustered this with our main JSS to enable external clients connectivity to our JSS & for them to be able to use Self Service & ASUS when off the network.

However we’ve had some issues getting the distribution point to work over HTTPS, however HTTP & AFP worked fine.
Continue reading

Error: OSX Web Service “Error Reading Settings”

Standard

After upgrading my servers to 10.7.3, I received the error message “Error Reading Settings” when clicking the “Web Service” in “Server.app”.

With the release of 10.7.3 Server you can now perform port redirects via the “Server.app.” With that in mind & the fact that I had manually added a redirect as mentioned here, i decided to revert my web service back to the default settings & then apply the redirect using “Server.app”

To reset the web service back to default settings i ran the below with Server.app not running:

I then relaunched “Server.app” clicked web service & we were back in business!

How To: Silently Setup VPN on 10.6 & 10.7

Standard

The below is hugely plagarised  from a script posted by Mark Bolwell to the Mac Enterprise list.

I use a version of the below in my Casper Imaging workflow to configure the a VPN Cisco IPSec network connection. As i run it at Imaging time i’ve added some logic so it only runs on MacBook models (which you may wish to remove).

The difference for using the below to the other versions i’ve seems is that this method can be ran “silently” with no GUI interaction. As such it can be leveraged to be used with Self-Service. Continue reading

How To: Port Redirect Web Traffic On Lion Server

Standard

UPDATE: With the release of 10.7.3, you can now do this via “Server.app”, so i’d advise against the below method. If you have used the below & upgraded to 10.7.3 & have an error in “Server.app” when managing the web service, click here.

Port redirection is (simply put), where an end user enters: http://mygreatwebsite.com & they are redirected to http://mygreatwebsite.com:(someport).

On Snow Leopard server you could easily set port redirects from within the Server Admin.app, but in Lion server this has all been changed.

The basics of how to enable virtual hosts on Lion server, is covered in this post. As well as links to the more advanced options.

Once Virtual Hosts have been enabled, editing /private/etc/apache2/extra/httpd-vhosts.conf enable the redirects.  Continue reading