Introduction

ldap2zaurus.rb is a simple Ruby script for exporting addresses from an LDAP directory to the XML format used by the Zaurus’ address book.

Requirements

Download

The Zaurus addressbook.xml file

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Addressbook >
<AddressBook>
  <Groups>
  </Groups>

  <Contacts>
    <Contact Title="title" FirstName="firstname"

month: “2003/02” year: “2003” MiddleName=“middlename” LastName=“lastname” Suffix=“suffix” FileAs=“lastname, firstname middlename” JobTitle=“b-jobtitle” month: “2003/02” year: “2003” Department=“b-department” Company=“b-company” BusinessPhone=“b-phone” BusinessFax=“b-fax” BusinessMobile=“b-mobile” DefaultEmail=“email#1” Emails=“email#1 email#2” HomePhone=“h-phone” HomeFax=“h-fax” HomeMobile=“h-mobile” BusinessStreet=“b-street1 b-street2 b-street3 b-street4” BusinessCity=“b-city” BusinessState=“b-state” BusinessZip=“b-zip” BusinessCountry=“b-country” BusinessPager=“b-pager” BusinessWebPage=“b-webpage” Office=“b-office” Profession=“b-profession” Assistant=“b-assistant” Manager=“b-manager” HomeStreet=“h-street1 h-street2 h-street3 h-street4” HomeCity=“h-city” HomeState=“h-state” HomeZip=“h-zip” HomeCountry=“h-country” HomeWebPage=“h-webpage” Spouse=“spouse” Gender=“1” Birthday=“birthday” Anniversary=“anniversary” Nickname=“nickname” Children=“child#1 child#2” Notes=“notes” Categories=“1023544920” Uid="-1044016718" />