Well...
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.
But, you need create the new structure on ldap to accept this entries.
Do you understand?
Cheers.
On 6/6/07, Nels Lindquist nlindq@maei.ca wrote:
Hi there.
I'm trying to merge entries from one tree into another, but the DN format for each tree is different. We're talking about inetOrgPerson entries, if that matters.
Specifically, the old DNs are of the form:
dn: cn=person,o=org,c=ca
And the new DNs are of the form:
dn: uid=username,ou=People,dc=example,dc=ca
I'm using OpenLDAP 2.1.19, and I suspect that slapd-meta might be able to do what I need.
All the examples I've been able to find seem to do with rewriting suffixes, however. I need to go slightly further and rewrite the DN itself.
Is this possible, or am I barking up the wrong tree?
Thanks very much for any assistance/configuration examples!
Nels Lindquist