Close and Go BackBack to Viget

Make Apple’s Address Book Pull from Exchange

Tony Pitale
Tony Pitale, Web Developer, May 28, 2008 1

On a Mac, access to the features of Exchange -- easily available to Windows users -- is a difficult contortion. Access to email and the global address list (GAL) is dependent on the server’s configuration. However, given the right settings, it is easy to configure Mail to access your Exchange email, even on hosted solutions.

Unfortunately, getting access to the GAL is not quite as obvious. The trick is in Address Book. Here is a walkthrough of the settings I use. (Almost every configuration is different, so leave comments and I will try and guide you through your settings).

First, open Address Book. Open Preferences (cmd-comma). Select the LDAP tab. Next, click the plus button in the bottom left corner of the window.

Now, in the drop-down, enter an arbitrary name (I used Viget). The server I use is the same one I use to access my email through Outlook Web Access. The default port worked for me, without SSL.

I’ll skip Search Base for the moment as it is the most complicated of the settings and go right to Authentication. More than likely you will have to use some form of authentication. The only option is Simple. The Username is very likely your full email address and the Password to match. If you are currently using Outlook Web Access, these should be fairly obvious.

Then are the search base and scope. The global address list is based on active directory. Active directory organizes its structure with a variety of two-letter keys. The most common are OU (for organizational unit, I think) and DC. DC is very likely going to be the domain name used in Outlook Web Access (e.g., example.com). OU may be the domain name attached to your email, but this field varies greatly from company to company. The format of this line is “OU=example.com,OU=Customers,DC=domain,DC=com”

Lastly, scope -- in all probability -- will be subtree.

image

As I said earlier, all of these settings are fairly vague (unless, you happen to be the administrator who configured the Exchange server). Each setting may require some alterations as even the slightest mistake can lead to unexpected results, or no results at all.

To finish, click save and then close preferences.

In the left column of the address book should be a group named “Directories.” This is where your new LDAP directory will be located. Click the name you supplied for your new directory. Don’t be alarmed when there are no listings shown. You are required to do a search in order to get any results from the Exchange server. So, try searching in the top right and see if your own name is returned.

image

That's it!

Jay Selway said on 06/02 at 09:25 AM

Unfortunately, I can’t seem to get the correct OU & DC. I’ll have to email the admin and ask him.

Name:

Email:

URL:

Not a robot? Prove it by entering the word below.


Remember my personal information

Notify me of follow-up comments?

A Development Community for Viget Labs and Beyond

Every team member here at Viget Labs strives to be an innovator. We members of the development team are no different - that's why we're constantly engaging in community discussions and exploring the unknown that is the next generation of open-source web applications.

Viget Is Hiring!

Viget has job openings for Ruby Developers, Interns, and Front-End Developers. Learn More »

Recent Comments

I think that polymorphic_url(@commentable, :anchor => “comment_#{@comment.id}") should work. You can also refactor the “comment_#{@comment.id}” to a separated method, like dom_id, which returns the dom identifier of the comment.