Jamie Thingelstad's personal website

LDAP Coming Soon

I spent a few hours today playing around with LDAP (Lightweight Directory Address Protocol). Why? Well, it frustrates me that my webmail application and Thunderbird don’t share address books. To add insult to injury, if Tammy has an email address of someone I can’t just find it. And, while I’ve moved all email to the IMAP server so I can’t lose anything on a client machine, that proverbial address book still sits there, not backed up, on each computer in the house. It’s a mess.

So, I got a binary distribution of OpenLDAP for Windows and went to town. The installation parts of this whole project went fairly well, but learning the in’s and out’s of LDAP will take some further work. I installed OpenLDAP and it seemed to be working, but how would I know? Turns out there aren’t very good tools for working with LDAP directories. phpLDAPAdmin came to the rescue! (Thank you SourceForge!) I installed this great toolkit and was able to see my LDAP server for all of it’s glory. As an aside, I had to have PHP:LDAP support which I didn’t, so I upgraded to PHP5 with LDAP and all sorts of other goodies and then broke my SquirrelMail 1.4.5 install. Luckily I was saved by the not-really released SquirrelMail 1.4.6cvs tree which works (at least so far) with PHP5.

After all this, I added some LDAP schemas for things like inetOrgPerson and started creating an address book. First thing I tried to do was create a record in Thunderbird. Bzzt! Little known dirty secret, while Thunderbird can read from an LDAP store, it cannot write to one. I even installed the 1.5b1 release and it too cannot write to an LDAP directory. After cursing the people’s email client briefly I found this was also true of the Address Book application in Mac OS X “Tiger”. And while SquirrelMail works with LDAP, it also is read-only.

I’m going to stay the course though and find a web-based address book manager that uses LDAP as the back-end. There are a couple. (Yes, I could use phpLDAPAdmin but it is more for administration than daily use.) Then I will just have my email programs query the LDAP store for information as needed.

I started to think of all the stuff you can do with an LDAP server though — anyone up for a recipe book using LDAP?


  1. If you think playing with LDAP is cool try using a X.500 server as the backend for Serious Fun

  2. Oh, man. Just today I spent hoooooooooours setting up OpenLDAP (lacking all LDAP clue) for exactly the same reason — if my mail is everywhere-accessible, why aren’t my addresses? I finally got things configured the way I wanted them, and was Googling around for answers as to why Thunderbird only appeared to have read-only access to my LDAP directory, and there it was — your post — just a dose of disappointment I needed. Thanks. :-)

  3. Ah — this Java based LDAP editor seems to work for me (on Fedora Core 3 Linux at least):

  4. I played with that Java editor a bit. It works (in Windows as well), but I much, much prefer phpLDAPAdmin. Way nicer tool!

  5. Yip, busy doing the same for the same reasons ….

    Although I am still in the installing phase – and having a headache with the server not revealing anything about itself :(

    Am dissapointed about the writing but will keep trying, reckon that’ll be a minor setback

  6. Glad to see I’m not the only one who is looking for an email client that writes to LDAP…. why on earth hasn’t anyone thought of that and done it yet??

  7. I am also looking for the holy grail mail client that writes to LDAP directories. Still there is no one? Why is it taking soooo loooonggg :'(… Thanks for writing about it.


Comments are closed.

© 2016 thingelstad

Theme by Anders NorenUp ↑