Force Safari to Open New Tabs Instead of New Windows

Posted on February 9th, 2009 in os x by jeremyp

I have always been annoyed how Safari (by default) will open certain links (e.g. target=”_blank”) in a new browser window instead of a new tab. Fortunately, there is a hidden preference you can set to force Safari to behave. I came across a post that details how. In a nutshell, you do this:
defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

Hopefully this helps someone else out, too. I know I will be referring back to this post every time I set up a new Mac.

Mac OS X Leopard and Kerberos

Posted on July 9th, 2008 in os x by jeremyp

I recently had to set up a new Mac Pro running OS X Leopard (10.5) to run on our network. All of our other Macs are currently running Tiger (10.4), but this new quad-core machine can not. Upon trying to get Kerberos authentication (GSSAPI), I ran into a little bit of a snag that took me a little while to figure out.

On Tiger, the minimal Kerberos configuration file (/Library/Preferences/edu.mit.Kerberos) needed to look like this:

[libdefaults]
  default_realm = EXAMPLE.COM

This setup assumes that the Kerberos realm matches the DNS domain name of the machine, and also depends on the proper DNS SRV records being set up. However, when I copied this file to the Leopard machine, it didn’t seem to work properly. After a little troubleshooting, I found that I needed to add the following section the the configuration file:


[domain_realm]
  .example.com = EXAMPLE.COM
  example.com = EXAMPLE.COM
 

This section maps the DNS domain name to the Kerberos realm. For whatever reason, this used to happen automatically, but now it needs to be stated explicitly. Go figure…

Hopefully this saves someone else out there some time!