I have an ldif file from one directory that I need to massage to use to import the users into another directory type.
I need to add the same 5 lines of text into each user's block of information after the first line (which consists of their dn.) Each user's dn ends in the same text (dc=com).
Any idea how I might accomplish this? I could easily put those 5 lines of text at the beginning of the ldif, or else have them in a separate file.
I've already figured out how to do a bunch of other mods that are needed, using sed, but I'm not sure how to do this one.
Thanks,
Samantha
I need to add the same 5 lines of text into each user's block of information after the first line (which consists of their dn.) Each user's dn ends in the same text (dc=com).
Any idea how I might accomplish this? I could easily put those 5 lines of text at the beginning of the ldif, or else have them in a separate file.
I've already figured out how to do a bunch of other mods that are needed, using sed, but I'm not sure how to do this one.
Thanks,
Samantha