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

Re: Rewrite DN format?

On Jun 6, 2007, at 1:15 PM, Nels Lindquist wrote:

Gabriel Stein wrote:

I suggest you try to use "slapcat > olddn.ldif". After, you can open the
ldif file with your prefered text editor(example: vi) and change all
entries to the new dn.

That would certainly be a simple operation for changing the dn suffix globally, but changing from cn to uid would require manually editing every single entry. Is that really the only way?

Nels Lindquist

Writing some perl to do that using regular expressions would be fairly simple. Or perhaps awk if you're inclined.

Attachment: smime.p7s
Description: S/MIME cryptographic signature