Watch the 3 Directory Services presentations from Macworld, which are available from this site under “Mac OS X” and “Server”
[url]http://www.macworldencore.com/online/presentation.asp[/url]
Specifically, the second one talks a lot about what data is stored where in OD, and how one would go about exporting it, massaging it, and importing it into a new OD setup.
To quickly do what you want, you could try using “slapcat > mydirectoryback.ldif” as root on your server to get an LDIF-formatted export of your LDAP directory. Then you can use a text editor or your favorite scripting to parse out the pieces you need and modifying them to suit your needs. You will need to remove some attributes which will get recreated when you import it again. Then you can use ldapadd on your new server to import the entries. Read the man pages and test things out on a test server that doesn’t matter.
Comments are closed