I would have replied but felt did not have enough technical background. Now that you mention this, I believe I might have done the same: 1. Exported the current tree. 2. Created new base so I believe we had the ou:production and I created a new one for development. 3. Used perl to search and replace (as Raymond did). 4. Imported the ldiff to the new tree/ou. I use ldapbrowser which is java based and developed by some government military branch but they stopped maintaining it and now I can only find this: http://www.anl.gov/techtransfer/Software_Shop/LDAP/LDAP.html I have it here: www.dalan.us/download/ldapbrowser.zip It works in both Windows and Linux as long as you have java. In linux just execute lbe.sh On Tuesday, May 18, 2010 9:55 AM, Raymond Norton wrote: >> Hi Raymond, >> can you please publish this on list, so others (me :) ) can have it as well. >> >> Cheers >> >> PS: this looks like interesting topic for some next meeting (Penguins, etc.) >> >> > >Date: Tue, 18 May 2010 09:55:55 -0500 >From: Raymond Norton >To: TCLUG Mailing List <tclug-list at mn-linux.org> >cc: >Subject: Re: [tclug-list] Can I meet with someone over coffee and get somehelp doing an initial configuration of OpenLDAP? > >Once you have it installed you will want to populate the database. I >chose to export my Thunderbird addressbook, but the Base DN was wrong, >among other things. > >I fixed most of the records using SED (no one replied to my question, so >not sure of there is an easier way). I tried to use Thunderbirds php >script, but couldn't get it to work. > > >Here is the command I used to fix records that only the wrong Base DN: > > sed -e "s/mail=.*$/ou=addressbook,dc=lctn,dc=org/g" Raymonds.ldif > >test.ldif > > >http://www.suwald.com/linux-gnu/sed-howto.html > >_______________________________________________ >TCLUG Mailing List - Minneapolis/St. Paul, Minnesota >tclug-list at mn-linux.org >http://mailman.mn-linux.org/mailman/listinfo/tclug-list "Great Spirits Have Always Encountered Violent Opposition From Mediocre Minds" - Einstein "Cuanta estupidez en tan poco cerebro!"