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

Re: importing ldif



Paolo Leano writes:
> i could add a line: uid: testuid under the dn and it imports just fine
> but the ldif file has at least 2000 entries.
> is there an easier way to go about this.

If it's just missing uids:

perl -p00e '/^uid:/m || s/^(dn: uid=([^,\n]+).*\n)/$1uid: $2\n/m' <old >new

-- 
Hallvard