Hey Matthew, On 2014-07-23, Matthew Weigel <uni...@idempot.net> wrote: >> into it, I started up ldapd(8) and connected to it with ldapvi(1) from >> ports. I wrote out the contents of that buffer to a separate file, and > Actually I didn't notice it this weekend but ldapvi(1) has --in and > --out arguments that do exactly the right thing - just read and write > straight LDIF files.
Yup, this did the trick nicely (once I remembered that the DB LDAPD looks for is in /var/db/ldap): ldapvi --out --host localhost -D cn=root,dc=example,dc=net > dump.ldiff I have the openldap-client package installed, so ldapadd did the trick to reimport all that into a fresh and empty DB ldapadd -H ldapi://%2fvar%2frun%2fldapi -D cn=root,dc=example,dc=net -W < dump.ldiff I'll give up on my binary importer (: Thanks for the pointers! -- Olivier Mehani <sht...@ssji.net> PGP fingerprint: 4435 CF6A 7C8D DD9B E2DE F5F9 F012 A6E2 98C6 6655 Confidentiality cannot be guaranteed on emails sent or received unencrypted.