Highrise to LDAP Gateway
Cross posted from Giant Robots
WARNING: Developed as a proof of concept in about 5 hours. Use with caution.
Adapted from the ldap-activerecord-server for its RailsConf 2007 presentation, this application will proxy your Highrise contacts as LDAP entries. Once you have this installed and running on a local server, you can point OS X’s Addressbook (or Outlook, Thunderbird, etc.) at it and get autocomplety goodness in your local mail client.
Quick instructions:
- Download via svn at http://svn.thoughtbot.com/highrise-ldap-proxy
- Figure out your highrise API url
- Click on ‘My Info’ in Highrise
- Click on ‘Reveal authentication token for feeds/API’ under ‘User account’. That will give you a key like
99531bd29aabd9bc9a09d04a60a97 - Combine that with your highrise url like such:
http://99531bd29aabd9bc9a09d04a60a97:X@tammersaleh.highrisehq.com/(Yes, X. Those 37signals dudes are wacky)
- Edit the conf/ldap-config.yml file, primarily to set the right Highrise API url
- run
bin/ldap-server.rb startand check the log file for problems.
Now point your ldap server at localhost:1390 (or whatever host/port combination you’re configured for) and view your Highrise contacts in your addressbook.
Here’s a screenshot of my OS X Addressbook configuration:
...And one of Addressbook doin’ it’s thang:
Comments and patches are more than welcome, but please keep in mind that this was really just produced as a proof of concept.
Comments
So this is really cool, and I’d love to provide LDAP access to my customers so they can access their contacts from within my app in their Address Book. Like Highrise, it’s based on a subdomain and login/password combo. Is there any way to have the AR to LDAP gateway running that would be able to use a specified subdomain url and the LDAP authentication that Address Book provides to do the correct scoping on the AR model?
Leave a comment...