[KLUG Members] OpenLdap

Adam Tauno Williams awilliam at whitemice.org
Mon Jul 4 21:42:26 EDT 2005


> >>I have managed to get address from Thunderbird address book in following
> >>form. Now How to import this entry into address book?
> >>dn: cn=abhishek_reck at yahoo.com,mail=abhishek_reck at yahoo.com
> >>objectclass: top
> >>objectclass: person
> >>objectclass: organizationalPerson
> >>objectclass: inetOrgPerson
> >>objectclass: mozillaAbPersonObsolete
> >>givenName: abhishek_reck at yahoo.com
> >>cn: abhishek_reck at yahoo.com
> >>mail: abhishek_reck at yahoo.com
> >>modifytimestamp: 0Z
> >This is seriously what TB outputs as an LDIF export?! Because this is
> >total crap, basically useless.  Every attribute is the e-mail address,
> >does it appear in the address book this way?
> TB exports what's there. My guess is his addressbook actually has that 
> info in the book. Here is a sample of what My export is:
> dn: cn=Joe Tallon,mail=joet at mounthopechurch.org
> objectclass: top
> objectclass: person
> objectclass: organizationalPerson
> objectclass: inetOrgPerson
> objectclass: mozillaAbPersonObsolete
> givenName: Joe
> sn: Tallon
> cn: Joe Tallon
> mail: joet at mounthopechurch.org
> modifytimestamp: 0Z

Then you just need to rewrite the DN to something valid, and drop the
modifytimestamp (you can't load meta-data via ldap) and the bogus
objectclass mozillaAbPersonObsolete.   Remember that "sn" is required by
"person".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20050704/6664b1fe/attachment.bin


More information about the Members mailing list