[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Missing DN suffix in Mozilla .ldif -- answered



That was quick! I already received a response from another post made elsewhere. For the record, the definitive answer thus far on importing Mozilla address books (as .ldif files) into Open LDAP can be found here:
 
http://groups.google.com/groups?q=ldif+group:netscape.public.mozilla.*+dn&hl=en&lr=lang_en&ie=UTF-8&output=search&selm=abj6v8%24mmp1%40ripley.netscape.com&rnum=10
 
In short -- you have to tweak the files.
 
----- Original Message -----
Sent: Wednesday, February 05, 2003 2:03 AM
Subject: Missing DN suffix in Mozilla .ldif

I've seen similar sample files to this one, but nobody's posted an answer on the list (that I could find anyway). I'm exporting a Mozilla addressbook, and the result looks like the following:
 
dn: cn=Joe User,mail=juser@company.com
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonObsolete
givenName: Joe User
cn: Joe User
mail:
juser@company.com
modifytimestamp: 0Z
This fails with "Object Not Found" if I try to load it through ldapadd. Obviously the DN isn't correct -- if I type in the suffix it works (and if I remove the modifytimestamp -- I've already added the mozilla objectclass). Is anybody aware of a way to "convince" ldapadd to load this data (perhaps this is where the BASE suffix in ldap.conf comes in?) or must I resort to massaging the data by hand?
 
If anybody has successfully gotten one of these ldif exports to work from Mozilla, I'd love to know what you did.
 
Cheers,
Tom